Discussion: Excel is probably the most popular spreadsheet software for PCs. Why? What can we do with this package that makes it so attractive for modeling efforts? Discussion Questions: 1…..
Define a function insert that expects an index, an item, and a Lisp-like list as arguments.
1 Sandra has a bright idea: When the length of a sublist in quicksort is less than a certain number—say, 30 elements—run an insertion sort to process that sublist. Explain why this is a bright idea.
2 Why is merge sort an O(n log n) algorithm in the worst case?
3 What is meant by the first and the rest of a Lisp-like list?
4 Define a function insert that expects an index, an item, and a Lisp-like list as arguments. The function returns a list in which the item is inserted at the given index position