Data Structure & Algorithm for various operation of arrays
edusayandas
11 views
6 slides
Aug 07, 2024
Slide 1 of 6
1
2
3
4
5
6
About This Presentation
Data Structure & Algorithm for various operation of arrays
Size: 755.19 KB
Language: en
Added: Aug 07, 2024
Slides: 6 pages
Slide Content
TOPIC : Various Operations of Arrays Name: Sayan Das College : Government College of Engineering and Textile Technology, Serampore Subject : Data Structure & Algorithm Subject Code : PCC-CS302 Stream : Computer Science and Engineering Semester : 3rd University Roll No : 11000123035
Introduction Definition: A collection of elements, each identified by an index or key. Purpose: Store and manage data efficiently. Types: One-dimensional, multi-dimensional.
Basic Operations Overview Description: Fundamental operations include addition, subtraction, multiplication, and division. Use Case: Applied element-wise to arrays.
Addition Operation: Adds corresponding elements of arrays. Example: If A = [1, 2, 3] and B = [4, 5, 6], then A + B = [5, 7, 9]. Use Case: Combining data sets, aggregating values.
Subtraction Operation: Subtracts corresponding elements of arrays. Example: If A = [7, 8, 9] and B = [4, 5, 6], then A - B = [3, 3, 3]. Use Case: Analyzing differences, error calculations.