221-13a-A4

# Report 30 points write a brief report that includes

This preview shows page 3. Sign up to view the full content.

Report (30 points) Write a brief report that includes the following: 1. A description of the assignment objective, how to compile and run your programs, and an explanation of your program structure (i.e. a description of the classes you use, the relationship between the classes, and the functions or classes in addition to those in the lecture notes). 2. A brief description of the data structure you create (i.e., a theoretical definition of the data structure and the actual data arrangement in the classes). 3. A description of how you implement the calculation of individual search cost and average search cost. Is the implementation associated with the operations find, insert, remove? Analyze the time complexity of updating the search cost of an individual node and summing up the search costs over all the nodes. 4. Give individual search cost in terms of n using big-O notation. Analyze and give the average search costs of a perfect binary tree and a linear binary tree using big-O notation, assuming that the following formulas are true ( n denotes the total number of integers). log 2 ( n +1) - 1 d =0 2 d ( d + 1) ( n + 1) · log 2 ( n + 1) n and n d =1 d n ( n + 1) / 2 5. Include a table and a plot of average search costs you obtain. In your discussions of the experimental results, compare the curves of search costs with your theoretical analysis results in item 4. 3
This is the end of the preview. Sign up to access the rest of the document.

{[ snackBarMessage ]}

### What students are saying

• As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

Kiran Temple University Fox School of Business ‘17, Course Hero Intern

• I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

Dana University of Pennsylvania ‘17, Course Hero Intern

• The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

Jill Tulane University ‘16, Course Hero Intern