You get a bonus - 1 coin for daily activity. Now you have 1 coin

Related lists for examples in the C language

Lecture



Queues and stacks have two characteristic features: both data structures have strict rules for accessing the data stored in them, and as a result of the extraction operations, the data are essentially destroyed. In other words, access to an item in a stack or queue causes it to be removed, and if that item is not stored anywhere else, it is lost. In addition, one consecutive section of memory is used in the stack and in the queue. Unlike a stack or a queue, a linked list allows flexible access methods, since each piece of information has a link to the next data element in the chain. In addition, the extraction operation does not delete the item from the list and destroy it. In principle, for this purpose it is necessary to introduce an additional special removal operation.

Linked lists can be single-linked and double-linked [1] . A single linked list contains a link to the next data item. A doubly linked list contains references to both the subsequent and previous elements of the list. The choice of the type of list used depends on the specific task.

Related lists for examples in the C language

[1] Linked lists are often called linked . Singly linked lists are also called simply linked linear lists, unidirectional lists , and unidirectional chains . Biconnected lists are sometimes also called double linked ; in addition, they are called doubly-connected linear lists , as well as bidirectional chains .

Types of lists

  1. Linear simply linked list
    Related lists for examples in the C language
  2. Cyclic single-linked list
    Related lists for examples in the C language
  3. Doubly-connected linear list
    Related lists for examples in the C language
  4. Cyclic doubly linked list
    Related lists for examples in the C language

More simple linked lists

https://intellect.ml/odnosvyaznye-spiski-4499/

More doubly linked lists

https://intellect.ml/dvusvyaznye-spiski-4500/

See also

avatar
28.4.2020 7:40

Подробнее односвязные списки

https://intellect.ml/odnosvyaznye-spiski-4499/

Подробнее двусвязные списки

https://intellect.ml/dvusvyaznye-spiski-4500/

avatar
28.4.2020 7:42

Односвязные списки на примерах Си
https://intellect.icu/odnosvyaznye-spiski-na-primerakh-si-4499
Подробнее двусвязные списки

https://intellect.ml/dvusvyaznye-spiski-4500/


Comments


To leave a comment
If you have any suggestion, idea, thanks or comment, feel free to write. We really value feedback and are glad to hear your opinion.
To reply

Structures and data processing algorithms.

Terms: Structures and data processing algorithms.