GATE (Graduate Aptitude Test in Engineering) Computer Science & IT (CS) Algorithms-Sorting Study Material (Page 14 of 14)

Choose Programs:

🎓 Study Material (1190 Notes): 2024-2025 Syllabus

Rs. 1000.00 -OR-

3 Year Validity (Multiple Devices)

Topic-wise Notes & SampleDetails

🎯 302 Numeric, 2894 MCQs (& PYQs) with Full Explanations (2024-2025 Exam)

Rs. 650.00 -OR-

3 Year Validity (Multiple Devices)

CoverageDetailsSample Explanation

Help me Choose & Register (Watch Video) Already Subscribed?

Searching Algorithms: Variants, Interpolation Search,

Edit

Variants

First up we have the Uniform binary search. It stores, instead of the lower and upper bounds, the index of the middle element and the change in the middle element from the current iteration to the next iteration. Each step reduces the change by about half.

Example of Uniform Binary Search
  • Uniform binary search stores the difference between the current and the two next possible middle elements of the array.
  • Then we have Exponential search which extends binary search to unbounded lists. It starts by finding the first element with an index that is both a power of two and greater than the target value. Afterwards, it sets that index as the upper bound, and switches to binary search. The Exponential search becomes…

… (906 more words, 32 figures) …

Subscribe (by clicking here) to view full notes and track progress.

Parallel Algorithms for Sorting: Enumeration Sort, Odd-Even Transposition Sort, Parallel Merge Sort, Hyper Quick Sort, Parallel Quicksort, Odd-Even Merge

Edit

As we know through the traditional syllabus, the Sorting or rearranging a list of numbers into increasing (decreasing) order, is a fundamental operation that appears in many applications. A powerful and common technique for organizing parallel algorithms is data parallelism.

Data parallelism results in the same operation being performed on every component of a data structure in parallel where the data structure resides in shared memory. Data parallelism makes used of a parallel form of an iterative loop, where all iterations of the loop are performed in parallel.

Let us n…

… (573 more words, 72 figures) …

Subscribe (by clicking here) to view full notes and track progress.