Suppose a circular queue of capacity (n – 1) elements is implemented with an array of n elements. Assume that the insertion and deletion operation are carried out using REAR and FRONT as array index variables, respectively. Initially, REAR = FRONT = 0. The conditions to detect queue full and queue empty are

🎲 Try a Random Question  |  Total Questions in Quiz: 167  |  🧠 Study this quiz with Flashcards
This question is part of a full practice quiz:
Data Structure Practice Test — practice the complete quiz, review flashcards, or try a random question.

In computer science, a data structure is a data organization, management, and storage format that is usually chosen for efficient access to data. More precisely, a data structure is a collection of data values, the relationships among them, and the functions or operations that can be applied to the data, i.e., it is an algebraic structure about data. (Source: Wikipedia)

Important Data Structures are:
Linked List
Binary Tree
Hash Table
Stacks
Queues
Heaps


Suppose a circular queue of capacity (n – 1) elements is implemented with an array of n elements. Assume that the insertion and deletion operation are carried out using REAR and FRONT as array index variables, respectively. Initially, REAR = FRONT = 0. The conditions to detect queue full and queue empty are