Design and analysis of algorithm

Business, Finance, Economics, Accounting, Operations Management, Computer Science, Electrical Engineering, Mechanical Engineering, Civil Engineering, Chemical Engineering, Algebra, Precalculus, Statistics and Probabilty, Advanced Math, Physics, Chemistry, Biology, Nursing, Psychology, Certifications, Tests, Prep, and more.
Post Reply
answerhappygod
Site Admin
Posts: 899603
Joined: Mon Aug 02, 2021 8:13 am

Design and analysis of algorithm

Post by answerhappygod »

Design and analysis of algorithm
Design And Analysis Of Algorithm 1
Design And Analysis Of Algorithm 1 (219.25 KiB) Viewed 31 times
Consider the following pseudocode, procedure find (list, value) for each item in the list if match item == value return the item's location end if end for end procedure 1. Clearly describe the input taken by the algorithm and the output returned by the algorithm. Compute the Time Complexity of the above pseudocode using Theta or BigOh notation. [5m] 2. Write another algorithm “TRIAL" with a different technique, for the same task as accomplished in the above pseudocode and analyse its complexity. [5m] [NOTE: You have the flexibility to either modify or propose a new strategy] to check your submission
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!
Post Reply