Definition of priority queue was given. We have to implement the priority queue using array of pointers with the priorities given in the range 1..n. The array could be accessed using the variable top. The list corresponding to the array elements contains the items having the priority as the array index. Adding an item would require changing the value of top if it has higher priority than top. Extracting an item would require deleting the first element from the corresponding queue. The following class was given: class PriorityQueue { int *Data[100]; int top; public: void put(int item, int priority); // inserts the item with the given priority. int get(int priority); // extract the element with the given priority. int count(); // returns the total elements in the priority queue. int isEmpty(); // check whether the priority queue is empty or not. }; We had to implement all these class functions.
4389Post New Wollega University Interview Questions
What are the different modes to run i-server?
What is the output power of a BTS, in dbm &watts if trx=2+2+2... if trx=4+4+4..
Why should I store logs in a database rather than a file?
What is a pojo class in java?
What is use of attributehierarchyenabled? : sql server analysis services, ssas
How do I boot from usb on windows 10 hp laptop?
how to start mysql server? : Sql dba
I am a beginner in Sap pm.Can anyone suggest me some good website to know more abt sap pm module. If anyone has any material abt it, plz mail to my mail:-urskartik.a@gmail.com
Which scheme is now merged with National Food for Work scheme?
what is the use of accounting standards
Hello. I am not here to answer your question. I jus found a job as software QA engr. And i am totally new to software testing. So can someone pls help me in the following scenario? there is this registration screen, and it contain: One textbox called Nickname which only accept alphanumerical One textbox called Contact which only accept numerical, One textbox called Email which can be filled with alphanumerical and symbol and One button called Register now becos there is so many textboxes, where i can filled with alphabet, number, symbol, "just space", leading zeros, leading space. there will be lots of combination. can someone pls help.. i will be appreciated if u can post the test case of the scenario i mentioned. Lots of Thanks
Give an example of the content key figure OTOTALSTCK (quantity total stock)?
If a base class is an adt, and it has three pure virtual functions, how many of these functions must be overridden in its derived classes?
What are Bridged access points?
What is a serializer django?