Unlike stacks, queues follow the _______ principle and are used in scenarios like _______ management.
- FIFO (First-In-First-Out)
- LIFO (Last-In-First-Out)
- Priority
- Random
Unlike stacks, queues follow the FIFO (First-In-First-Out) principle. Queues are used in scenarios like job scheduling and task management, where tasks are processed in the order they arrive.
Loading...
Related Quiz
- What is the key idea behind the Quick Sort algorithm?
- In bubble sort, how many iterations are required to completely sort an array of size n, where n is the number of elements in the array?
- How does the brute-force approach to finding the Longest Palindromic Substring work?
- What are some common algorithms used for string compression?
- Selection sort's time complexity remains _______ regardless of the input sequence.