Short Answers Sections 7.1 - 7.2 Queues and Their Applications |
ArrayQueue<Integer> q = new ArrayQueue<Integer>( ); q.add(1); q.add(2); q.add(3); System.out.println(q.remove( ));
_______ __________________________________ front| | data| | | | | | |_______| |______|______|______|______|______| [0] [1] [2] [3] [4]
ArrayQueue<Integer. q = new ArrayQueue<Integer>( ); q.add(1); q.add(2); q.add(3); System.out.println(q.getFront( ));
_______ front| | |_______| _______ rear| | |_______|
Multiple Choice Sections 7.1-7.2 Queues and Their Applications |
Multiple Choice Section 7.3 Implementations of the Queue ADT |
Multiple Choice Section 7.4 Priority Queues |