DS

Listed below are few analogies w.r.t to Data Structures.




*************
Stacks

and

Set of plates,
Bangles

*******************

Queue

and

Queue in Booking tickets at Railway station, movie tickets

************

Priority Queue

and

1) Queue in hospitals, ex: Normal consultation fees is Rs. 80/- with FCFS, After 8:00 PM Rs. 150 /- (FCFS), In case of emergency, during any time of the day, is Rs. 200 /- (Higher Priority)

2) In temples, normal queue for Darshan, is FCFS and it is FREE, and for VIP, by paying Rs. 50/- more, we get entry into a special queue, for Special Darshan (Priority is increased)

**************

No comments:

Post a Comment