a) Graph 1 below represents the runtimes against the input size of two Algorithms A (1000 log N) B (NP/100) solving same
Posted: Fri May 20, 2022 10:47 am
a) Graph 1 below represents the runtimes against the input size of two Algorithms A (1000 log N) B (NP/100) solving same problem Algorithm B has a low coefficient 1/100 but why is its run time slower that Algorithm A that has a very high coefficient of 10002 Graph 1 30000 23000 20000 13000 Series2 10000 Series 3000 0 0 20 40 60 20 100 120 140 Major Topic ALGORITHM ANALYSIS Blooms Designation CR Score 8 b) "Queues and stacks are used in many real-life situations”. In you own words, clearly distinguish between queues and stacks, and 6 give one example of real-life situations in which each of them is used.