எளிய தமிழில் – Data Structures & Algorithms C++ / Python – 03

By | October 22, 2025

Data Structures Types /  தரவுகளின் வகைகள்

C++

·       Vector

·       List

·       Stack

·       Queue

·       Deque

·       Set

·       Map

 

Phyton

·       Linked List

·       Hash Tables

·       Trees

  • Binary Trees
  • Binary Search Trees
  • AVL Trees

·       Graphs

Vector

It stores data in an array but can dynamically change in size. Adding and removing of data are usually done at the end. Data’s can be accessed by index.

வெக்டார் / திசையன்

இது ஒரு வரிசையைப் போல தரவுகளைச் சேமிக்கிறது, ஆனால் அளவில் மாறும் வகையில் மாறக்கூடும். தரவுகளைச் சேர்ப்பதும் நீக்குவதும் பொதுவாக இறுதியில் செய்யப்படும். தரவுகளை குறியீட்டு மூலம் அணுகலாம்.

List

Data gets stored sequentially, where each data is connected to the next. Adding and removing of data can be done at both ends. Not accessible by index.

பட்டியல்

தரவு தொடர்ச்சியாக சேமிக்கப்படுகிறது, அங்கு ஒவ்வொரு தரவும் அடுத்தவற்றுடன் இணைக்கப்படும். தரவைச் சேர்ப்பதும் அகற்றுவதும் இரு முனைகளிலும் செய்யப்படலாம். குறியீட்டால் அணுக முடியாது.

Stack

Data gets stored in a specific order, called LIFO (Last In, First Out), where elements can only be added and removed from the top. Not accessible by index.

அடுக்கு

தரவு வரிசையில் சேமிக்கப்படும், LIFO (கடைசியாக வந்தது, முதலில் வெளியே வந்தது) . இதில் கூறுகளை மேலிருந்து மட்டுமே சேர்க்கவும் அகற்றவும் முடியும். குறியீட்டால் அணுக முடியாது.

Queue

Data is stored in a specific order, called FIFO (First In, First Out), where data are added at the end and removed from the front. Not accessible by index.

வரிசை

தரவு குறிப்பிட்ட வரிசையில் சேமிக்கப்படுகிறது, இங்கு இறுதியில் சேர்க்கப்பட்டு முன்பக்கத்திலிருந்து அகற்றப்படும். FIFO (முதலில் உள்ளே, முதலில் வெளியே) எனப்படும். ஒரு குறியீட்டால் அணுக முடியாது.

Deque

Data is stored in a double-ended queue, where data can be added and removed from both ends. Data can be accessed by index.

டீக்கியூ

தரவு இரட்டை முனை வரிசையில் சேமிக்கப்படுகிறது, அங்கு இரு முனைகளிலிருந்தும் தரவைச் சேர்க்கலாம் மற்றும் அகற்றலாம். குறியீட்டு மூலம் தரவை அணுகலாம்.

Set

Data is stored in unique. Not accessible by index.

செட்

தரவு தனித்துவமாக சேமிக்கப்படுகிறது, குறியீட்டால் தரவை அணுக முடியாது.

Map

Data is stored in “key/value” pairs. Accessible by keys (not by index).

மேப்

தரவு “விசை/மதிப்பு” ஜோடிகளில் சேமிக்கப்படுகிறது. விசைகள் மூலம் அணுகலாம் (குறியீடு மூலம் அல்ல).

 

 

Leave a Reply