exam-2 - LitVerbatimVerbatim frame=leftline...

Info icon This preview shows pages 1–3. Sign up to view the full content.

View Full Document Right Arrow Icon
LitVerbatimVerbatim frame=leftline, gobble=0,commandchars= {} CodeVerbatimVerbatim frame=none, numbers=left, gobble=0,commandchars= {} 1 Abstraction and Such 6 What is an abstract data type? Why is this concept important? 6 Your programming team shows you an advertisement for a general-purpose sorting algorithm that can sort any kind of data in O ( n ) time. This is much faster than even quicksort. How much should your company pay for this algorithm? 6 What is the advantage of a skip-list over a binary search tree? 6 Explain very briefly how we can design a data-structure that has the following requirement: insertion and finding need to be O (lg n ). Once an element has been found, we want to be able to get to the next or previous element in O (1) time. 1
Image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
2 Singly Linked Data 6 A list can be implemented using arrays, or with linked data. Under what conditions would you prefer one implementation over the other? 6 What is the difference between a stack and a queue?
Image of page 2
Image of page 3
This is the end of the preview. Sign up to access the rest of the document.

{[ snackBarMessage ]}

What students are saying

  • Left Quote Icon

    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.

    Student Picture

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

  • Left Quote Icon

    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.

    Student Picture

    Dana University of Pennsylvania ‘17, Course Hero Intern

  • Left Quote Icon

    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.

    Student Picture

    Jill Tulane University ‘16, Course Hero Intern