Algorithms_in_C 1.0.0
Set of algorithms implemented in C.
Loading...
Searching...
No Matches
queue.h
1// Queue ADT header file ... COMP2521
2
3typedef struct QueueRep *queue;
4
5queue newQueue(); // set up empty queue
6void dropQueue(queue); // remove unwanted queue
7int QueueIsEmpty(queue); // check whether queue is empty
8void QueueEnqueue(queue, int); // insert an int at end of queue
9int QueueDequeue(queue); // remove int from front of queue
10
11// By
12// .----------------. .----------------. .----------------.
13// .-----------------. .----------------. .----------------.
14// | .--------------. || .--------------. || .--------------. ||
15// .--------------. | | .--------------. || .--------------. | | | _________ |
16// || | _____ _____ | || | __ | || | ____ _____ | | | | ____ ____
17// | || | ____ | | | | | _ _ | | || ||_ _||_ _|| || | / \
18// | || ||_ \|_ _| | | | | |_ || _| | || | .' `. | | | | |_/ | |
19// \_| | || | | | | | | || | / /\ \ | || | | \ | | | | | | |
20// |__| | | || | / .--. \ | | | | | | | || | | ' ' | | || |
21// / ____ \ | || | | |\ \| | | | | | | __ | | || | | | | | | |
22// | | _| |_ | || | \ `--' / | || | _/ / \ \_ | || | _| |_\ |_
23// | | | | _| | | |_ | || | \ `--' / | | | | |_____| | || | `.__.'
24// | || ||____| |____|| || ||_____|\____| | | | | |____||____| | || | `.____.'
25// | | | | | || | | || | | || | | | | |
26// | || | | | | '--------------' || '--------------' ||
27// '--------------' || '--------------' | | '--------------' || '--------------'
28// |
29// '----------------' '----------------' '----------------'
30// '----------------' '----------------' '----------------'
31
32// Email : z5261243@unsw.edu.au
33// hhoanhtuann@gmail.com
Definition queue.c:14
Definition bfs.c:6