Teaching‎ > ‎CS320 Summer I 2009 TF‎ > ‎

2009-05-27

posted May 27, 2009, 12:03 PM by Site Admin Role
  • Print a "list0 int"
  • Insertion sort on list0 int.
    • How to insert an element into an already sorted list.
    • Maintain a sorted "result" list and insert each element in the input list to the sorted result.
  • Merge sort on list0 int.
    • Merge two already sorted lists.
    • Divide a list into two lists and merge them.
  • The code in merge sort has an infinite loop. Extra credit if you can spot where it is.
ċ
sort.dats
(2k)
Site Admin Role,
May 27, 2009, 12:10 PM
Comments