24 views

Original Title: CMSC-5343 Algorithm Analysis Homework 1

Uploaded by Robin Awal

- SMU Summer Timetable 2013
- Algorithm Analysis Assignment 1-Rabin Awal
- Ex 15 - TreeMap Car Dealer
- 00-BlockIntroduction.pdf
- Malaguena guitar tab
- Holding the Guitar
- MSCS - Algorithm Analysis Assignment 3
- 2016-17 CEPS Scholarship Chart by Department
- wimax-formnew
- Money Making Pro
- Exam - migration.pdf
- UCO Undergraduate Registration form 0510 - UG14
- Google Maps API Documentation
- Mobile Computing self learning material SMU DE exam preparation BT0086
- Black Box Testing
- electronics
- e Cosa Noids
- Selection of Project 3B.sc.(IT) Fall 2012 Session
- Lab Assignment Bscit III
- The Subtle Art of Not Giving a F*ck: A Counterintuitive Approach to Living a Good Life

You are on page 1of 1

Homework 1 - 200 pt

Below, you will find the problems assigned for this assignment. Please elec-

tronically submit your assignment to blackboard.

A and swapping it with the first element of the array, then sorting the remaining

n 1 elements using the same process. This algorithm is known as selection

sort. Write pseudocode for this algorithm. What loop invariant or invariants

does this algorithm maintain? Give the worst-case runtime in notation.

n

k 2 = n(n+1)(2n+1)

P

a) 6

k=1

b) The solution of the following recurrence:

T (n) = 2 for n = 2 T (n) = 2T (n/2) + n for n = 2k , k > 1

is T (n) = n lg n.

a) 2n+1 = O(2n )

b) 22n = O(2n )

5. Find big- bounds for the following recurrences (assume that adequate base

cases exist for each):

a) T (n) = T (n 1) + n

b) T (n) = T (n/2) + 1

c) T (n) = 4T (n/2) + n2

d) T (n) = T (n 1) + T (n 2)

- SMU Summer Timetable 2013Uploaded byTushar Ahuja
- Algorithm Analysis Assignment 1-Rabin AwalUploaded byRobin Awal
- Ex 15 - TreeMap Car DealerUploaded byRobin Awal
- 00-BlockIntroduction.pdfUploaded byRobin Awal
- Malaguena guitar tabUploaded byRobin Awal
- Holding the GuitarUploaded byRobin Awal
- MSCS - Algorithm Analysis Assignment 3Uploaded byRobin Awal
- 2016-17 CEPS Scholarship Chart by DepartmentUploaded byRobin Awal
- wimax-formnewUploaded byShishir Modak
- Money Making ProUploaded byRobin Awal
- Exam - migration.pdfUploaded byRobin Awal
- UCO Undergraduate Registration form 0510 - UG14Uploaded byRobin Awal
- Google Maps API DocumentationUploaded byRobin Awal
- Mobile Computing self learning material SMU DE exam preparation BT0086Uploaded byRobin Awal
- Black Box TestingUploaded byPearl Butler
- electronicsUploaded byDinesh Maenaly
- e Cosa NoidsUploaded byRobin Awal
- Selection of Project 3B.sc.(IT) Fall 2012 SessionUploaded byRobin Awal
- Lab Assignment Bscit IIIUploaded byRobin Awal