Fall 2024 - CS502 - 1
Fall 2024 - CS502 - 1
01
Fall 2024 Total Marks: 20
CS502- Fundamentals of Algorithms
Instructions
Please read the following instructions carefully before solving & submitting assignment:
It should be clear that your assignment will not get any credit (zero marks) if:
The assignment is submitted after due date.
The submitted assignment is other than MS Word file.
The submitted assignment does NOT open or file is corrupted.
The assignment is copied (from other student or ditto copy from handouts or internet).
Uploading instructions
For clarity and simplicity, you are required to upload/submit only one .doc/docx file.
Lectures:
Objectives
Consider the following piece of code of a function that processes a list of integers in the following way:
You have to determine the time complexity of the given C++ code by analysing each line of the code and also det
ermine the overall time complexity of this code. You are required to show all steps in detail.
Good Luck!
Total Marks: 20