cs251 homework1

cs251 homework1 - CS251 Homework 1 Due date Monday April 7...

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

View Full Document Right Arrow Icon
CS251 Homework 1 Due date: Monday April 7, 11:59pm in Blackboard, submit PDF files only. This is a firm deadline : no extensions or late submissions will be accepted, since solutions will be released immediately after the deadline. True/False Questions 1. In a dynamically-resized array implementation of a stack, any sequence of m push and pop operations takes time proportional to mn . 2. Amortized analysis is used to determine the worst case running time of an algorithm. 3. In order to support the use of foreach statements, a data structure must implement the Comparable interface. 4. An nlog n algorithm is not necessarily slower than a 6 n algorithm for some input. 5. An algorithm that uses 12 n 2 + 4 n log n operations is an O( n 3 ) algorithm. 6. An array is partially sorted if the number of inversions is linearithmic. 7. Sorting small arrays with Mergesort is inefficient. 8. Mergesort is stable. 9. Some inputs cause the System Quicksort to use a quadratic number of compares.
Image of page 1

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

View Full Document Right Arrow Icon
Image of page 2
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