Open Access. Powered by Scholars. Published by Universities.®

Physical Sciences and Mathematics Commons

Open Access. Powered by Scholars. Published by Universities.®

Conference

University for Business and Technology in Kosovo

2014

Algorithm

Articles 1 - 1 of 1

Full-Text Articles in Physical Sciences and Mathematics

Efficient Algorithm For Solving 3sum Problem, Muhamed Retkoceri Nov 2014

Efficient Algorithm For Solving 3sum Problem, Muhamed Retkoceri

UBT International Conference

In this paper is presented an algorithm for solving 3SUM problem efficiently in general computation model. The algorithm is based on sorting and splits the task into sub-tasks where this approach enables the algorithm to run concurrently at the high-level of computing. The algorithm is O(n2) and running sequentially achieves at least ~1/5 n2 number of basic necessary accesses of data structures. In this paper is also presented a comparison of running performances in practice between the new algorithm and the current most famous algorithm for 3SUM which is in-place and also based on sorting.