Worst-case, Amortized & Expected Running Times

There are three running times we expect in dealing with data structures: worst-case, amortize and expected. These describe about the time that is used up when we are trying to access data structures with algorithms. Let’s describe what these are. Worst‐case The strongest type of running time guarantee; i.e., if an algorithm has a worst‐caseContinue reading “Worst-case, Amortized & Expected Running Times”

Exercise 1 – Plotting the Running Time

This exercise focuses on the running time of a code. Here, I had two sorting algorithms – a selection sort function I made (user-defined function), and the built in sorted() function in Python. I expect that the built-in function is faster, because it is *built in*, as compared to the function I made that consumesContinue reading “Exercise 1 – Plotting the Running Time”

(CMSC) 1…2…3…, Here We Go!

Challenges are what make life interesting. Overcoming them is what makes them meaningful. – Some motivation quote about “challenges” My first blog for a computer science subject. Weird. I wasn’t expecting this, assuming that we would do more of coding and learning and applying, all those fun stuff. However, I did got into an onlineContinue reading “(CMSC) 1…2…3…, Here We Go!”

Design a site like this with WordPress.com
Get started