Homework
Homework 1
Given a sorted array, how can we get rid of duplicates "in-situ", i.e. without using additional (temporary) memory ?
- To turn in on Wednesday 9/13 before 3:00 p.m.:
- your code
- a printout of the file generated by the UNIX utility "script" showing several executions of your algorithm
- your Big Oh analysis and a short explanation "why your algorithm works correctly".
You will be graded on:
- correctness: (6 points)
- correct algorithm and results (incl. thorough testing)
- robustness (e.g. no division by zero)
- following the specification (e.g. output specification)
- style: (2 points)
- use of comments
- indentation (use TAB key in emacs)
- meaningful variable and function naming
- simplicity, modularity etc.
- analysis: (2 points)
- Big Oh complexity
- why?