Skip to main content
Logo image

Problem Solving with Algorithms and Data Structures using Java The Interactive Edition

Section 5.13 Summary

  • A sequential search is O(n) for ordered and unordered lists.
  • A binary search of an ordered list is O(logn) in the worst case.
  • Hash tables can provide constant time searching.
  • A bubble sort, a selection sort, and an insertion sort are O(n2) algorithms.
  • A Shell sort improves on the insertion sort by sorting incremental sublists. It falls between O(n) and O(n2).
  • A merge sort is O(nlogn), but requires additional space for the merging process.
  • A quicksort is O(nlogn), but may degrade to O(n2) if the split points are not near the middle of the list. It does not require additional space.
You have attempted 1 of 1 activities on this page.