Written by students who passed Immediately available after payment Read online or as PDF Wrong document? Swap it for free 4.6 TrustPilot
logo-home
Exam (elaborations)

Midterm exam solution for Algorithms And Data Structures (CS2321)

Rating
-
Sold
-
Pages
5
Grade
A
Uploaded on
14-09-2021
Written in
2019/2020

Exam question with solution for Algorithms And Data Structures (CS2321)

Institution
Course

Content preview

‫اﻟﻤﻤﻠﻜﺔ اﻟﻌـﺮﺑﯿﺔ اﻟﺴﻌﻮدﯾﺔ‬
Kingdom of Saudi Arabia
Ministry of Higher Education ‫وزارة اﻟﺘﻌﻠﯿﻢ اﻟﻌﺎﻟﻲ‬
Prince Sattam bin Abdulaziz University ‫ﺟﺎﻣﻌﺔ اﻷﻣﯿﺮ ﺳﻄﺎم ﺑﻦ ﻋﺒﺪاﻟﻌﺰﯾﺰ‬
College of Computer Engineering and Sciences
‫ﻛﻠﯿﺔ ھﻨﺪﺳﺔ وﻋﻠﻮم اﻟﺤﺎﺳﺐ‬
Computer Science Department
‫ﻗﺴﻢ ﻋﻠﻮم اﻟﺤﺎﺳﺐ‬
Course Title: Data Structures and Algorithms :‫اﺳم اﻟطﺎﻟب‬
CS2321
Instructor: Dr. Mahdi Khemakhem Midterm Exam I :‫اﻟرﻗم اﻟﺟﺎﻣﻌﻲ‬
Date: November 1, 2015 2577 :‫اﻟﺸﻌﺒﺔ‬
Time: 60 minutes 1436-1437 (I) :‫اﻟﻤﺠﻤﻮع‬




Total Mark …../20

Question Total Marks Marks Obtained

1 3.50
2 3.50
3 4
4 3
5 3
6 3
Total Score 20

Instructions

1. Write down your name, your student Id, Section number and your college name in the area
provided above.


2. Sign Here:




Good Work

Midterm Exam I CS2321– Data Structures and Algorithms Page: 1 of 5

, Exercise 1:
Choose the correct answer:
Q 1 2 3 4 5 6 7 8 9 10 11 12 13 14
R a b c d d c b a a b c d a d
1. Analytical methods is better than Empirical methods in analyzing performance of algorithms because:
a) Empirical methods sometimes take very long time.
b) Empirical methods require supercomputers.
c) Empirical methods sometimes give bad estimations.
d) All of the above.
2. Algorithm analysis means
a) How to efficiently store, access, manage data
b) How to predict an algorithm’s performance
c) Data structures effect algorithm’s performance
d) None of the above
3. When comparing two algorithms they should be
a) Run on different machines.
b) Run on the same machine with different setup.
c) Run on the same machine with the same setup.
d) Run on a super computer.
4. Factors affecting the running time of an algorithm is(are):
a) Computer.
b) Compiler.
c) Input to the algorithm.
d) All the above.
5. Big-Oh means
a) f(N) = c g(N) when N ≥ n0
b) f(N) > c g(N) when N ≥ n0
c) f(N) < c g(N) when N ≥ n0
d) f(N) ≤ c g(N) when N ≥ n0
6. Big-Omega means
a) f(N) = c g(N) when N ≥ n0
b) f(N) > c g(N) when N ≥ n0
c) f(N) ≥ c g(N) when N ≥ n0
d) f(N) < c g(N) when N ≥ n0
7. Three-level nested for loop runtime response is:
a) O(N)
b) O(N3)
c) O(N2 )
d) O(log N)
8. Sorting a set of numbers in increasing order; given that the data is in decreasing order is called:
a) Worst case.
b) Average case.
c) Best case.
d) None.



Midterm Exam I CS2321– Data Structures and Algorithms Page: 2 of 5

Written for

Institution
Course

Document information

Uploaded on
September 14, 2021
Number of pages
5
Written in
2019/2020
Type
Exam (elaborations)
Contains
Questions & answers

Subjects

$3.49
Get access to the full document:

Wrong document? Swap it for free Within 14 days of purchase and before downloading, you can choose a different document. You can simply spend the amount again.
Written by students who passed
Immediately available after payment
Read online or as PDF

Get to know the seller
Seller avatar
InformationSystemsSTD

Also available in package deal

Get to know the seller

Seller avatar
InformationSystemsSTD prince sattam bin abdulaziz university
Follow You need to be logged in order to follow users or courses
Sold
-
Member since
4 year
Number of followers
0
Documents
10
Last sold
-

0.0

0 reviews

5
0
4
0
3
0
2
0
1
0

Recently viewed by you

Why students choose Stuvia

Created by fellow students, verified by reviews

Quality you can trust: written by students who passed their tests and reviewed by others who've used these notes.

Didn't get what you expected? Choose another document

No worries! You can instantly pick a different document that better fits what you're looking for.

Pay as you like, start learning right away

No subscription, no commitments. Pay the way you're used to via credit card and download your PDF document instantly.

Student with book image

“Bought, downloaded, and aced it. It really can be that simple.”

Alisha Student

Working on your references?

Create accurate citations in APA, MLA and Harvard with our free citation generator.

Working on your references?

Frequently asked questions