Buscar

What is a queue data structure? I - A queue is a special type of linear list in which insertions are made at one end and removals at the other. II...

What is a queue data structure?

I - A queue is a special type of linear list in which insertions are made at one end and removals at the other.
II - The end where elements are inserted is called the beginning of the queue, and the end where they are removed is called the end of the queue.
III - The concept of a queue in programming has the same philosophy as the queue in the real world, where the first to arrive is the first to be served.
IV - The queue data structure can only be implemented using pointers.
a) I and II are correct.
b) II and III are correct.
c) I, II, and III are correct.
d) II, III, and IV are correct.

Essa pergunta também está no material:

Aula7-Fila
29 pág.

Banco de Dados I Campus CuiabaCampus Cuiaba

💡 1 Resposta

User badge image

Ed Verified user icon

A alternativa correta é a letra "a) I e II estão corretas". Uma fila é uma estrutura de dados linear em que as inserções são feitas em uma extremidade e as remoções na outra. Onde a extremidade em que os elementos são inseridos é chamada de início da fila e a extremidade em que eles são removidos é chamada de fim da fila. A filosofia da fila na programação tem o mesmo conceito da fila no mundo real, onde o primeiro a chegar é o primeiro a ser atendido. A fila pode ser implementada usando ponteiros, mas não é a única forma de implementação. A afirmação IV está incorreta.

0
Dislike0

✏️ Responder

SetasNegritoItálicoSublinhadoTachadoCitaçãoCódigoLista numeradaLista com marcadoresSubscritoSobrescritoDiminuir recuoAumentar recuoCor da fonteCor de fundoAlinhamentoLimparInserir linkImagemFórmula

Para escrever sua resposta aqui, entre ou crie uma conta

User badge image

Outros materiais