bsc

Comprehensive codebase and coursework for the 4-year B.Sc. Computer Science Honours degree (WBSU)

git clone https://github.com/notamitgamer/bsc.git
· rebuilt hourlyOpen on GitHub
root / semester_2 / algorithms / algo_037.md

algo_037.md (281B)


      1 # algo_037
      2 
      3 ### Problem Statement
      4 
      5 > Write an algorithm to check if the queue is full (Circular queue)
      6 
      7 ## Algorithm
      8 ```
      9 procedure ifFull(rear, Qsize, front)
     10 begin
     11     if((rear + 1) % Qsize = front)
     12         return true;
     13     else   
     14         return false;
     15     endif
     16 end procedure
     17 ```