Sinly Flashcards

(20 cards)

1
Q

“A _____________ is a collection of components,called nodes.Every
node(except the last node) , contains the address of the next
node”

A

linked list

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

“A linked list is a collection of components,called _________.Every
node(except the last node) , contains the address of the next
node”

A

nodes

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

“Linked List is a __________, in which elements are not
stored at a contiguous location, rather they are linked using
pointers. Linked List forms a series of connected nodes, where
each node stores the data and the address of the next node.”

A

linear data structure

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

“In a _____________, each node contains a reference to the next
node in the sequence. Traversing a singly linked list is done in a
forward direction.”

A

singly linked list

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

“In a___________, each node contains references to both the
next and previous nodes. This allows for traversal in both forward
and backward directions, but it requires additional memory for the
backward reference.”

A

doubly linked list

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

” In a ___________ , the last node points back to the head
node, creating a circular structure. It can be either singly or doubly
linked..”

A

circular linked list

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Linked lists can grow or shrink dynamically, as
memory allocation is done at runtime.

A

Dynamic Size:

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

Adding or removing elements from a linked
list is efficient, especially for large lists.

A

Insertion and Deletion:

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

Linked lists can be easily reorganized and modified
without requiring a contiguous block of memory.

A

Flexibility:

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

Unlike arrays, linked lists do not allow direct
access to elements by index. Traversal is required to reach a
specific node.

A

Random Access:

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

Linked lists require additional memory for storing the
pointers, compared to arrays.

A

Extra Memory:

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

It holds the actual value or data associated with the node.

A

Data:

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

The linked list is accessed through the head node, which
points to the first node in the list.

A

Head:

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

It stores the memory address (reference) of the
next node in the sequence.

A

Next Pointer:

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

“This method can also be optimized to work in O(1) by keeping an
extra pointer to the tail of the linked list”

A

Time complexity:

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

“The _______ operation walks through all the elements of the list
in an order and displays the elements in that order.”

17
Q

“A ______________ is a special type of linked list in which each
node contains a pointer to the previous node as well as the next
node in the structure.”

A

doubly linked list

18
Q

The size of a doubly linked list can change dynamically,
meaning that nodes can be added or removed as needed.

A

Dynamic size:

19
Q

_____________ In a doubly linked list, each node contains pointers to
both the previous and next elements, allowing for navigation in both forward
and backward directions.

A

Two-way navigation:

20
Q

___________ Each node in a doubly linked list requires memory for two
pointers (previous and next), in addition to the memory required for the data
stored in the node.

A

Memory overhead: