ALGORITHMS I 2026 ACTUAL SCRIPT
COMPLETE QUESTIONS AND ANSWERS 100%
CORRECT
◉ Underlying data structures: Heap. Answer: Priority queue
◉ Underlying data structures: Linked list, Array. Answer: Bag,
Queue, List
◉ Underlying data structures: Linked list. Answer: Deque, Stack
◉ Common operations for ADT List. Answer: Append, Prepend,
InsertAfter, Print, PrintReverse, Sort, Remove, Search, IsEmpty,
GetLength
◉ Common operations for ADT Queue, Stack, Deque. Answer: Push,
Pop, Peak, IsEmpty, GetLength
◉ Float. Answer: Data type is a single-precision 32-bit floating point.
Use a float (instead of double) if you need to save memory in large
arrays of floating point numbers.
, ◉ Double. Answer: A data type is a double-precision 64-bit floating
point. For decimal values, this data type is generally the default
choice.
◉ Byte. Answer: Data type is an 8-bit signed two's complement
integer. The byte data type is useful for saving memory in large
arrays.
◉ Range(5). Answer: 0 1 2 3 4
Every integer from 0 to 4
◉ Assignment vs comparison. Answer: = vs ==
◉ garbage collection. Answer: *It reclaims memory from data
structures implemented using linked allocations.* Python is a
managed language, meaning objects are deallocated automatically
by the Python runtime, and not by the programmer's code. When an
object is no longer referenced by any variables, the object becomes a
candidate for deallocation.
Python will deallocate objects with a reference count of 0. However,
the time between an object's reference count becoming 0 and that
object being deallocated may differ across different Python runtime
implementations.