Sorting, Searching, and Merging

  • Noel Kalicharan


In this chapter, we will explain the following:
  • How to sort a list of items using selection sort

  • How to sort a list of items using insertion sort

  • How to add a new item to a sorted list so that the list remains sorted

  • How to sort an array of strings

  • How to sort related (parallel) arrays

  • How to search a sorted list using binary search

  • How to search an array of strings

  • How to write a program to do a frequency count of words in a passage

  • How to merge two sorted lists to create one sorted list


Binary Search Alphabetical Order Previous Item Distinct Word Public Class 
These keywords were added by machine and not by the authors. This process is experimental and the keywords may be updated as the learning algorithm improves.

Copyright information

© Noel Kalicharan 2014

Authors and Affiliations

  • Noel Kalicharan
    • 1
  1. 1.New DelhiIndia

Personalised recommendations