HW4 - Sabancı University Faculty of Engineering and...

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

View Full Document Right Arrow Icon

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

View Full DocumentRight Arrow Icon
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: Sabancı University Faculty of Engineering and Natural Sciences CS301 – Algorithms Homework 4 Due: November 17, 2009 (17:40 - Recitation @ FASS 1103) PLEASE NOTE : • Provide only the requested information and nothing more. Unreadable, unintelligible and irrelevant answers will not be considered. • You can collaborate with your friends and discuss the solutions of the problems. However you have to write down the solutions on your own. • Plagiarism will not be tolerated. • You don’t have to typeset your answers but feel free to do so if you want to. • Please hand in the hard copies of your answer sheets to TAs at the beginning of the recitation hour on November 17, 2009. Question 1) Let B [1 ..n ] be an array of n distinct numbers. If i < j and B [ i ] > B [ j ] then the pair ( i,j ) is called an inconsistent pair of B. Explain how to use augmented RBT mentioned in the lecture notes and its rank function to count the number of inconsistent pairs in an array of size n . Comment on the complexity of the proposed algorithm.....
View Full Document

Page1 / 2

HW4 - Sabancı University Faculty of Engineering and...

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online