What is a Data Structure?
🔑 Definition
Data structure is a data organization, management, and storage format that enables efficient access and modification.
(Access, Insertion, Deletion, Search)
هياكل البيانات هي عبارة عن طرق على أساس نعرف كيف نتعامل مع هالبيانات من ناحية:
- التخزين
- الوصول
- الحذف
- البحث
وهدفنا أن يكون البرنامج سريع وكفاءته عالية.
🎯 Why Data Structures Matter
- The correct data structure improves performance of the algorithm or program.
- استخدام هيكل البيانات الصحيح يزيد من سرعة وكفاءة البرنامج.
⚙️ Different Structures Have Different Strengths
- Some structures are fast for access (like arrays).
- But may be slower for deletion (arrays again).
- Therefore, Linked List has been created. It’s not fixed size and we can add and delete elements with ease.