Question: What is Data Structure ?
"Data structure" ek programming aur computer science concept hai jo data ko organize aur store karne ka tarika hai taaki usse efficently access aur manipulate kiya ja sake. Data structure ek particular way mein data ko arrange karta hai jisse data ko retrieve aur update karna aasani se ho. Yeh data ko organize karne ke liye various data types aur operations ka use karta hai.
Data structures ka use algorithms ko optimize karne mein hota hai, jisse ki data ko efficiently process kiya ja sake aur space aur time complexity ko minimize kiya ja sake. Yeh programming languages mein data ko store aur access karne ke tarike ko define karte hain.
Question: Give me explanation of Data Structures Type.
Types Of Data Structures:
1) Linear Data Structure
2) Non-Linear Data Structure
Linear Data structures ke kuch important concepts hote hain:
Arrays: Ye ek linear data structure hai jisme data elements ek saath stored hote hain. Har element ka ek unique index hota hai jisse use access kiya ja sakta hai.
Linked Lists: Linked lists ek linear data structure hote hain jisme har node next node ka address store karta hai. Linked lists mein kisi bhi node ko access karne ke liye poora list traverse kiya jata hai.
Stacks: Stacks ek linear data structure hote hain jisme data ko Last In First Out (LIFO) order mein store kiya jata hai. Data ko stack mein push (insert) aur pop (remove) kiya jata hai.
Queues: Queues ek linear data structure hote hain jisme data ko First In First Out (FIFO) order mein store kiya jata hai. Data ko queue mein enqueue (insert) aur dequeue (remove) kiya jata hai.
Trees: Trees ek non-linear data structure hote hain jisme data ko hierarchically organize kiya jata hai. Har node ek parent node ke saath connected hota hai aur multiple child nodes ho sakte hain.
Graphs: Graphs ek non-linear data structure hote hain jisme vertices aur edges ke set se data ko represent kiya jata hai. Graphs ke through connections aur relationships ko model kiya jata hai.
1)Array
2) LinkedList you can learn more about LinkedList by clicking on Link
3) Stacks
Comments
Post a Comment