| Chapter 4 - Computer Science |
image |
/default_org/ncert_images/class-xii/c... |
1 |
|
Delete Content |
| Chapter 4 - Computer Science |
text |
t ha p er C 4 Queue “WecouldsaywewanttheWebtoreflect avis... |
2 |
|
Delete Content |
| Chapter 4 - Computer Science |
image |
/default_org/ncert_images/class-xii/c... |
3 |
|
Delete Content |
| Chapter 4 - Computer Science |
text |
N otes Figure 4.2: Queue of cars in a petrol pump 4.1.1 F... |
4 |
|
Delete Content |
| Chapter 4 - Computer Science |
image |
/default_org/ncert_images/class-xii/c... |
5 |
|
Delete Content |
| Chapter 4 - Computer Science |
text |
(B) Following are some examples of application of queue i... |
6 |
|
Delete Content |
| Chapter 4 - Computer Science |
image |
/default_org/ncert_images/class-xii/c... |
7 |
|
Delete Content |
| Chapter 4 - Computer Science |
text |
• PEEK : used to view elements at the front of the queue,... |
8 |
|
Delete Content |
| Chapter 4 - Computer Science |
image |
/default_org/ncert_images/class-xii/c... |
9 |
|
Delete Content |
| Chapter 4 - Computer Science |
text |
creation of list having fixed size. Hence, we will never ... |
10 |
|
Delete Content |
| Chapter 4 - Computer Science |
image |
/default_org/ncert_images/class-xii/c... |
11 |
|
Delete Content |
| Chapter 4 - Computer Science |
text |
Activity 4.1 Let us consider the example of a queue that ... |
12 |
|
Delete Content |
| Chapter 4 - Computer Science |
image |
/default_org/ncert_images/class-xii/c... |
13 |
|
Delete Content |
| Chapter 4 - Computer Science |
text |
print("Now we are going to remove remaining people from t... |
14 |
|
Delete Content |
| Chapter 4 - Computer Science |
image |
/default_org/ncert_images/class-xii/c... |
15 |
|
Delete Content |
| Chapter 4 - Computer Science |
text |
something. As they have already purchased a ticket, they ... |
16 |
|
Delete Content |
| Chapter 4 - Computer Science |
image |
/default_org/ncert_images/class-xii/c... |
17 |
|
Delete Content |
| Chapter 4 - Computer Science |
text |
To perform above operations efficiently on a deque, N ote... |
18 |
|
Delete Content |
| Chapter 4 - Computer Science |
image |
/default_org/ncert_images/class-xii/c... |
19 |
|
Delete Content |
| Chapter 4 - Computer Science |
text |
• A statement to create deque, with name myDeque. N otes ... |
20 |
|
Delete Content |
| Chapter 4 - Computer Science |
image |
/default_org/ncert_images/class-xii/c... |
21 |
|
Delete Content |
| Chapter 4 - Computer Science |
text |
function accepts deque as argument and returns a Notes co... |
22 |
|
Delete Content |
| Chapter 4 - Computer Science |
image |
/default_org/ncert_images/class-xii/c... |
23 |
|
Delete Content |
| Chapter 4 - Computer Science |
text |
print("Queue underflow") else: return myDeque.pop(0) def ... |
24 |
|
Delete Content |
| Chapter 4 - Computer Science |
image |
/default_org/ncert_images/class-xii/c... |
25 |
|
Delete Content |