Array Processing Algorithms (ऐरे प्रोसेसिंग एल्गोरिदम) :-
Array (ऐरे) समान (Same) Data Type के कई Elements का एक समूह (Collection) होता है, जो Memory में लगातार (Continuous) स्थानों पर Store होते हैं। Array के प्रत्येक Element को उसके Index (सूचकांक) द्वारा Access किया जाता है।
Array का पहला Element Index 0 पर Store होता है।
English
An Array is a collection of elements of the same data type stored in continuous memory locations. Every element is accessed using its Index.
The first element of an array is stored at Index 0.
उदाहरण:
A = [10, 20, 30, 40, 50]
Index : 0 1 2 3 4
Value :10 20 30 40 50
Characteristics of Array (Array की विशेषताएँ) -
- Array के सभी Elements एक ही Data Type के होते हैं। — All elements have the same data type.
- Elements Memory में लगातार (Continuous) स्थानों पर Store होते हैं। — Elements are stored in contiguous memory.
- प्रत्येक Element का अपना एक Unique Index (सूचकांक) होता है। — Every element has a unique index.
- Elements को उनके Index द्वारा सीधे Access किया जा सकता है। — Elements can be accessed directly using their index.
- Array का Size निश्चित (Fixed) होता है। — The size of an array is fixed.
Advantages of Array (Array के लाभ) -
- एक ही Variable में कई Values Store की जा सकती हैं। — Stores multiple values in one variable.
- Program लिखना आसान हो जाता है। — Easy to write programs.
- Searching और Sorting आसान हो जाती हैं। — Searching and sorting become easier.
- Index की सहायता से Elements को तेजी से Access किया जा सकता है। — Fast access using index.
- Memory का कुशल (Efficient) उपयोग होता है। — Efficient memory utilization.
Disadvantages of Array (Array की हानियाँ) -
- Array का Size निश्चित (Fixed) होता है। — Fixed size.
- केवल एक ही Data Type के Elements Store किए जा सकते हैं। — Stores only one data type.
- Elements को Insert और Delete करना कठिन होता है। — Insertion and deletion are difficult.
- यदि Array का Size आवश्यकता से अधिक हो, तो Memory व्यर्थ (Waste) हो सकती है। — Memory may be wasted if the array size is larger than required.

Real Example:-
