answersLogoWhite

0


Best Answer

That doesn't make much sense. I guess it should be while NOT empty Q. Note that in many programming languages, the "not" is expressed with the exclamation mark. Perhaps you overlooked it... or it disappeared from the question. In that case (not empty), the meaning would be something like: while there is something in the queue (i.e., while not empty queue), process the elements in the queue (do something with the element). The statement is incomplete; instead of just "q1" it should say something like "process q1" or "q1.process()".

User Avatar

Wiki User

9y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: What does it means in computer algorithm while empty Q Q1 where Q is queue and Q1 is element of queue?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

What is meant by the term algorithm?

Algorithm means written expression of any data.


Can Particle Swarm Optimization be used in K-means algorithm?

yes it can. k means algorithm for grouping particles and its used for multimodal function optimization


What word means full and means empty and means even?

Vacuum is a word that means an empty space.


What blank workbook means?

A blank workbook - in relation to computer files - is simply an empty document, spreadsheet or database - that's been newly created. Think of it as an empty piece of paper - ready to be written on.


What is Notation in Algorithm?

hi i am ravi kashyap my email id kashyap.ravi77@gmail.com notations used to define the effiency of An algorithm? what means


What is k-adapted?

k-adapted means clustering algorithm


Why do you use flowcharts?

Flowchart means pictorial representing of an algorithm.


What Latin or Greek root means empty?

Vacuas is the Latin word for empty. Inanis, which means void and vacuus, which means deserted are closely related to empty.


Why empty set is a proper subset of every set?

It isn't. The empty set is not a proper subset of the empty set.The empty set is a subset of every set, for the following reason. "A" is a subset of "B" means that if an item "x" is an element of "A", then it is also an element of "B".(x is element of A) implies (x is element of B)Since the empty set has no elements, the left part of the implication is false. Therefore, the entire implication is true. If you have trouble grasping this last part, look up the Wikipedia article, or other sources, for "trivially true" or "vacuous truth". (Briefly, an implication, like "F implies G", can only be false if "F" is true, and "G" is false - in all other cases, it is true.)


Is empty set super set?

No, an empty set can't be the super set.The definition of super set is as follows:If A and B are sets, and every element of A is also an element of B, then B is the super set of A, denoted by B ⊇ A.Another way to interpret this is A ⊆ B, which means that "A is the subset of B".Suppose that ∅ is the super set. This implies:∅ ⊇ A [Which is not true! Contradiction!]Remember that ∅ and {∅} are two different sets. If we have {∅}, then there exists an element that belongs to that set since ∅ is contained in that set. On the other hand, ∅ doesn't have any element, including ∅.Therefore, an empty set can't be the super set.


Why is the need of algorithm?

"Algorithm" is simply a fancy name that means: a set of steps to calculate something, or to get a certain result. So, the reason algorithms are needed is because you need to calculate some things; or you need the computer to calculate something. Without algorithms, both computers and your brain would be utterly useless.


What is the meaning and example for the word empty?

Which word means 'empty out