wiz-icon
MyQuestionIcon
MyQuestionIcon
1
You visited us 1 times! Enjoying our articles? Unlock Full Access!
Question

Graphs can be implemented using
(i) Arrays
(ii) Linked list
(iii) Stack
(iv) Queue

A
(i), (ii) and (iv)
No worries! We‘ve got your back. Try BYJU‘S free classes today!
B
(i), (ii) and (iii)
No worries! We‘ve got your back. Try BYJU‘S free classes today!
C
(ii) and (iii)
No worries! We‘ve got your back. Try BYJU‘S free classes today!
D
(i) and (iv)
Right on! Give the BNAT exam to get a 100% scholarship for BYJUS courses
Open in App
Solution

The correct option is D (i) and (iv)

Graphs can be implemented using:-

1)Arrays

2)Queue

A graph is a pictorial representation of a set of objects where some pairs of objects are connected by links. The interconnected objects are represented by points termed as vertices, and the links that connect the vertices are called edges.

1) An array is a data structure consisting of a collection of elements each identified by at least one array index or key. This type of data structure is a linear array, also called a one-dimensional array.

2) A Queue is a linear structure which follows a particular order in which the operations are performed. The order is first in first out (FIFO). In a stack remove the item the most recently added; in a queue, remove the item the least recently added.




904729_916730_ans_650226c2216b43938eb9377879680f28.PNG

flag
Suggest Corrections
thumbs-up
0
Join BYJU'S Learning Program
similar_icon
Related Videos
thumbnail
lock
Picture Perfect
MATHEMATICS
Watch in App
Join BYJU'S Learning Program
CrossIcon