1. What does it mathematically mean that f(n) = O(g(n)), in your own words? [3]
2. Assuming that f(n) = O(n^2) and g(n) = O(n^2 logn), what should be f(n) + g(n)? Why? Simplify the resulting expression. [3]
3. What is the worst-case time complexity of the function "func2"? Explain. When providing your analysis, don't forget to specify what is the input size. [4]
1. Briefly describe List ADT giving details about [4]
1. What is an abstract data type and how does it differ from data type? Give an example of an abstract data type and also of a data type in Python. [3]
2. Briefly describe Stack ADT giving details about [4]
3. What is the best-case and worst-case time complexity of operation pop() for a Stack ADT, if implemented with an array? (no explanation, no marks) . [3]
1. Briefly describe a bit-vector, giving details about
Un cuerpo tiene una energía cinética de 605 J. Si su velocidad se duplica la energía cinética final será: