Sie sind auf Seite 1von 3

Report Content Guideline

Question 1:

1)

Explain briefly how sequential search and hash table work.

2)

Show the runtime comparison in time unit (eg: seconds, milliseconds) between sequential search and hashing. Use at least 3 datasets of different sizes for testing.

Question 2:

1)

Explain briefly how chaining and quadratic probing work.

2)

Explain the hashing function you use to hash the email address.

3)

Give an example scenario where chaining is better, and another where quadratic probing is better.

Question 3:

1)

Explain briefly how quick sort and radix sort work.

2)

Show the runtime comparison in time unit (eg: seconds, milliseconds) between sequential search and hashing. Use at least 3 datasets of different sizes for testing.

Question 4:

1)

Explain briefly how merge sort and bucket sort work.

2)

Show the runtime comparison in time unit (eg: seconds, milliseconds) between sequential search and hashing. Use at least 3 datasets of different sizes for testing.

Question 5:

1)

Explain briefly what is DFS and BFS.

2)

Explain your definition of sparse and dense graph.

3)

Explain how you generate the sparse and dense graph randomly.

Question 6:

1)

Explain briefly what is Topological Sort and how it works.

2)

Explain how you generate the DAG randomly.

Question 7:

1)

Explain the 0/1 Knapsack Problem and its dynamic programming solution.

Question 8:

1)

Explain briefly how quick-select algorithm works.

2)

Show the runtime comparison in time unit (eg: seconds, milliseconds) between quick- select algorithm and another algorithm that pre-sort the data before searching.

Question 9:

Question 10:

1)

Explain briefly how Boyer-Moore algorithm works.

2)

Show the runtime comparison in time unit (eg: seconds, milliseconds) between brute force and Boyer-Moore algorithm. Use at least 3 articles of different sizes for testing.

Please check the next page for Submission Guideline!

TT02 and TT03 Assignment Submission Guideline

Please follow the instructions below carefully:

a) You are to put all your files in a folder with the folder name in the following format:

[TT0x] IDOfStud1 ICEMSNameOfStud1 IDOfStud2 ICEMSNameOfStud2

Example:

[TT02] 1101025432 SITI BT HUSSEIN 1102007007 JAMES BOND

b) Place only the .cpp, .hpp, .h and all the required resource files and your report in the folder. DO NOT include any executable files such as .exe file at all, as Gmail does not accept attachments with .exe and your email will not go through.

c) Your main program should have the name main.cpp.

d) Zip the folder using the .zip, .7z, or .rar format.

e) Email the zipped file to workjudge@gmail.com and state your email subject title as:

[TT0x] IDOfStud1 ICEMSNameOfStud1 IDOfStud2 iCEMSNameOfStud2

Example:

[TT02] 1101025432 SITI BT HUSSEIN 1102007007 JAMES BOND

f) It is absolutely critical you do this exactly as instructed above because this will be used for automatic filtering by the email system.

g) For all your source code files, insert the following information at the top of the file:

/************ P R O J E C T **************** Course : TCP2101 Algorithm Design And Analysis Session: Trimester 2, 2014/15 ID and Name #1 : IDOfStud1 ICEMSNameOfStud1 Contacts #1 : PhoneNoOfStud1 EMailOfStud1 ID and Name #2 : IDOfStud2 iCEMSNameOfStud2 Contacts #2 : PhoneNoOfStud2 EMailOfStud2 ********************************************/

Thank you!