Answer Posted /
| Is This Answer Correct ? | Yes | No |
Post New Answer View All Answers
Explain the need of z-order method?
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.
What do you understand by “directoryindex”?
How can I implement the function overloading in Perl ? I read about the operator overloading, I do not know how to implement the function overloading. Thanks in advance ?
Explain full-text query in sql server?
What is revaluation of Accounts, how does it is accounted in business
What are the programming types that Kotlin supports?
I went for an interview for H-1b visa stamping the visa officer was not satisfied with the doc and asked me to get list of employees, their sal, position and income tax papers. After a week I went back with all those doc, agin she has asked me to get unemploymentwagereport.My company is not ready to give to the report? Is there any other way to get visa stamping done... as I might loose my job .....Is there any other alternate paper that could help me with that....????Plzzzz help me if anyone knows abt it.
Php program to generate fibonacci series?
Is echo a function in php?
What is the work of a patent engineer? Does the experience in working as patent engineer helps in finding a job in a refinery?
Can a server have 2 ip addresses?
Is it possible to stock transfer stock between two company of other state with some agreement without paying cst if yes then witch kind of agreement requard
What is the purpose of xssfhyperlink class in apache poi?
What is threads life cycle?