100% satisfaction guarantee Immediately available after payment Both online and in PDF No strings attached 4.6 TrustPilot
logo-home
Exam (elaborations)

COSC 2436 Exam 1 Final Exam review UPDATED ACTUAL Exam Questions and CORRECT Answers

Rating
-
Sold
-
Pages
13
Grade
A+
Uploaded on
15-12-2024
Written in
2024/2025

COSC 2436 Exam 1 Final Exam review UPDATED ACTUAL Exam Questions and CORRECT Answers The most significant contributor to an algorithm's time requirement is - CORRECT ANSWER - the algorithm's basic operation Which of the following operations could be identified as the basic operation of an algorithm? - CORRECT ANSWER - all of the above

Show more Read less
Institution
Cosc
Module
Cosc









Whoops! We can’t load your doc right now. Try again or contact support.

Written for

Institution
Cosc
Module
Cosc

Document information

Uploaded on
December 15, 2024
Number of pages
13
Written in
2024/2025
Type
Exam (elaborations)
Contains
Questions & answers

Subjects

Content preview

COSC 2436 Exam 1 Final Exam review
UPDATED ACTUAL Exam Questions and
CORRECT Answers
The most significant contributor to an algorithm's time requirement is - CORRECT
ANSWER - the algorithm's basic operation


Which of the following operations could be identified as the basic operation of an algorithm? -
CORRECT ANSWER - all of the above



Which one of the following would not be a basic operation? - CORRECT ANSWER - all
of the above


For large values of n which statement is true?
2n^3 + 4n^2 behaves like n^3
2n^3 + 4n^2 + 17n behaves like n^3
all of the above

2n^3 behaves like n^3 - CORRECT ANSWER - all of the above



For large values of n which statement is true? - CORRECT ANSWER - (n^2 + n) / 2
behaves like n^2


Computing the sum of the first n integers using the formula n * (n + 1) / 2 has a growth rate -
CORRECT ANSWER - independent of n


To properly evaluate the effectiveness of an algorithm, you need to determine - CORRECT
ANSWER - all of the above


When search an array for a particular value, which case is most useful? - CORRECT
ANSWER - the average case

, If an algorithm requires 7 basic operations for an algorithm with a problem size of n, the
algorithmic complexity is - CORRECT ANSWER - O(1)



Polish notation is another term for a(n) - CORRECT ANSWER - prefix expression



Reverse polish notation is another term for a(n) - CORRECT ANSWER - postfix
expression


An expression that has correctly paired delimiters is called a(n) - CORRECT ANSWER -
balanced expression


Given the following infix expression, which one of the following is the corresponding postfix
expression? a + r ^ 2 - 5 - CORRECT ANSWER -ar2^+5-


Given the following infix expression, which one of the following is the corresponding postfix
expression? w + x * y / z - CORRECT ANSWER -wxy*z/+


Given the following infix expression, which one of the following is the corresponding postfix
expression?(a + b) * (c - d) / (e + f) - CORRECT ANSWER -ab+cd-*ef+/


Using the evaluate Postfix algorithm, evaluate the following postfix expression. 7 2 + 4 * -
CORRECT ANSWER - 36


Using the evaluate Postfix algorithm, evaluate the following postfix expression. a b + c d -
*Assume that a = 5, b = 7, c = 6, and d = 2. - CORRECT ANSWER - 48


Using the evaluate Postfix algorithm, evaluate the following postfix expression. w x + y* z
/Assume that w = 3 , x = 4, y = 2, z = 7. - CORRECT ANSWER -2

Get to know the seller

Seller avatar
Reputation scores are based on the amount of documents a seller has sold for a fee and the reviews they have received for those documents. There are three levels: Bronze, Silver and Gold. The better the reputation, the more your can rely on the quality of the sellers work.
MGRADES Stanford University
View profile
Follow You need to be logged in order to follow users or courses
Sold
1123
Member since
2 year
Number of followers
104
Documents
68962
Last sold
7 hours ago
MGRADES (Stanford Top Brains)

Welcome to MGRADES Exams, practices and Study materials Just think of me as the plug you will refer to your friends Me and my team will always make sure you get the best value from the exams markets. I offer the best study and exam materials for a wide range of courses and units. Make your study sessions more efficient and effective. Dive in and discover all you need to excel in your academic journey!

3.8

178 reviews

5
76
4
31
3
47
2
9
1
15

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 exams and reviewed by others who've used these revision notes.

Didn't get what you expected? Choose another document

No problem! You can straightaway pick a different document that better suits what you're after.

Pay as you like, start learning straight 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 smashed it. It really can be that simple.”

Alisha Student

Frequently asked questions