Important: Use custom search function to get better results from our thousands of pages

Use " " for compulsory search eg:"electronics seminar" , use -" " for filter something eg: "electronics seminar" -"/tag/" (used for exclude results from tag pages)


 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
ARRAY IMPLEMENTATION OF CIRCULAR QUEUE
Post: #1

ARRAY IMPLEMENTATION OF CIRCULAR QUEUE


.docx  ARRAY IMPLEMENTATION OF CIRCULAR QUEUE.docx (Size: 16.2 KB / Downloads: 18)


Algorithm

Step 1: [Include All Header Files Required]
Step 2: [Define the array size as 5 and declare front and rear pointers]
Step 3: Declare the functions isEmpty() , isFull(), enqueue(), size(),dequeue(), peek() and
view()]
Step 4: [Call the functions]
Choice :1 CALL enqueue()
Choice :2 CALL deenqueue()
Choice :3 CALL peek()
Choice :4 CALL size()
Choice :5 CALL view()

Algorithm for isEmpty( )

Step 1: [Check for underflow]
If ( front -1 and rear -1 )
RETURN -1
Step 2: Else RETURN 0
[Finish the process]


Algorithm for isFull( )

Step 1: [Check for overflow]
If (= (rear+1)% qsize front )
RETURN -1
Step 2: Else RETURN 0
[Finish the process]
 

Marked Categories : circular queue, array implementation of circular queue, array implementation of circular queue pdf, seminar on array and queue,

[-]
Quick Reply
Message
Type your reply to this message here.

Image Verification
Image Verification
(case insensitive)
Please enter the text within the image on the left in to the text box below. This process is used to prevent automated posts.

Possibly Related Threads...
Thread: Author Replies: Views: Last Post
  r c c circular folded staircase Guest 0 139 16-07-2017 12:20 AM
Last Post: Guest
  implementation of mind control robot ppt and pdf Guest 0 460 16-07-2017 12:20 AM
Last Post: Guest
  implementation of anti plastic campaign in india Guest 0 271 16-07-2017 12:20 AM
Last Post: Guest
  design and implementation of a microcontroller Guest 0 0 16-07-2017 12:20 AM
Last Post: Guest
  dtmf encoder VHDL/Verilog code implementation in fpga Guest 0 0 16-07-2017 12:20 AM
Last Post: Guest
  verilog implementation of carry bypass adder Guest 0 0 16-07-2017 12:20 AM
Last Post: Guest
  dsrc implementation in ns2 Guest 0 208 16-07-2017 12:20 AM
Last Post: Guest
  web server implementation on fpga ppt Guest 1 0 04-07-2017 10:25 AM
Last Post: jaseela123
  download leaky bucket implementation using opengl Guest 1 0 30-06-2017 03:40 PM
Last Post: jaseela123
Smile eliptic curve cryptogrphy implementation in ns2 Guest 1 0 05-06-2017 12:00 PM
Last Post: jaseela123
This Page May Contain What is ARRAY IMPLEMENTATION OF CIRCULAR QUEUE And Latest Information/News About ARRAY IMPLEMENTATION OF CIRCULAR QUEUE,If Not ...Use Search to get more info about ARRAY IMPLEMENTATION OF CIRCULAR QUEUE Or Ask Here

Options: