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 (123.33 KiB) Viewed 30 times
Upload answer 1. Given the engine capacity (in cc) of n engines in a shipment in the form of an array and a number k, design an algorithm using two different techniques, to return positions of all the engines whose capacity is less than k cc. For example, let the shipment contains different engine capacity: 500, 650, 750, 1000, and 1200 cc. Given the above information about the shipment and the number 750, Your algorithm should return the position 1 and 2, since positions 1 and 2 of the array has engines with a capacity less than 750. [7m] 2. Analyze the complexity of your proposal and check its correctness. [3m]
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!
Post Reply