SlideShare a Scribd company logo
1 of 4
Download to read offline
An algorithm is a sequence of instructions followed to solve a problem.
A parallel algorithm is an algorithm that can execute several instructions simultaneously on
different processing devices and then combine all the individual outputs to produce the final
result.
The function of concurrent processing that can divide a complex task and process it multiple
systems to produce the output in quick time.
Concurrent processing is essential where the task involves processing a huge bulk of complex
data. Examples include − accessing large databases, aircraft testing, astronomical calculations,
atomic and nuclear physics, biomedical analysis, economic planning, image processing, robotics,
weather forecasting, web-based services, etc.
Model of Computation
➢ Single Instruction stream, Single Data stream (SISD) computers
SISD computers contain one control unit, one processing unit, and one memory unit.
➢ Single Instruction stream, Multiple Data stream (SIMD) computers
SIMD computers contain one control unit, multiple processing units, and shared memory or
interconnection network.
➢ Multiple Instruction stream, Single Data stream (MISD) computers
As the name suggests, MISD computers contain multiple control units, multiple processing
units, and one common memory unit.
➢ Multiple Instruction stream, Multiple Data stream (MIMD) computers
MIMD computers have multiple control units, multiple processing units, and a shared
memory or interconnection network.
Parallel Algorithm Models –
1. Data parallel model
- tasks are assigned to processes.
- consequence of single operations.
- being applied on multiple data items.
- disadvantage - increases with the size.
2. Task Graph Model
- quantity of data associated with the tasks.
- improve the cost of data movement.
- problems are divided into atomic tasks and implemented as a graph.
3. Work Pool Model
- dynamically assigned to balancing load.
- used when the quantity of data associated with tasks is comparatively smaller than the
computation associated with the tasks.
- assigning of tasks is centralized.
4. Master-Slave Model
- one or more master processes generate task and allocate it to slave processes. Maybe
allocated it.
- master can estimate the volume of the tasks.
- a random assigning can do a satisfactory job of balancing load.
- slaves are assigned smaller pieces of task at different times.
5. Pipeline Model
- set of data is passed on through a series of processes, each of which performs some tasks
on it.
- arrival of new data generates the execution of a new task.
- chain of producers and consumers.
- process in the queue.
6. Hybrid Models
- multiple models applied hierarchically
Example − Parallel quick sort
Time complexity is a measure of the amount of time required by an algorithm to run as a
function of the size of its input. It estimates the growth rate of the algorithm's running time
relative to the input size. In other words, time complexity provides an understanding of how
the algorithm's performance scales with the size of the problem.
Classify Time complexity
Worst-case complexity − When the amount of time required by an algorithm for a given
input is maximum.
Average-case complexity − When the amount of time required by an algorithm for a given
input is average.
Best-case complexity − When the amount of time required by an algorithm for a given input
is minimum.
Asymptotic notation is the easiest way to describe the fastest and slowest possible
execution time for an algorithm using high bounds and low bounds on speed. For this, we
use the asymptotic notation in Parallel algorithm.
Big O notation
In mathematics, Big O notation is used to represent the asymptotic characteristics of
functions. The function − f(n) = O(g(n))
If there exists positive constants c and n such that f(n) ≤ c * g(n) for all n where n ≥ n .
Omega notation
Omega notation is a method of representing the lower bound of an algorithm’s execution
time. The function − f(n) = Ω (g(n))
If there exists positive constants c and n such that f(n) ≥ c * g(n) for all n where n ≥ n .
Theta Notation
Theta notation is a method of representing both the lower bound and the upper bound of
an algorithm’s execution time. The function − f(n) = θ(g(n))
If there exists positive constants c ,c , and n such that c1 * g(n) ≤ f(n) ≤ c2 * g(n) for all n
where n ≥ n .

More Related Content

Similar to Parallel Algorithm mid.pdf

algocomplexity cost effective tradeoff in
algocomplexity cost effective tradeoff inalgocomplexity cost effective tradeoff in
algocomplexity cost effective tradeoff in
javed75
 
presentationfinal-090714235255-phpapp01 (1) (2).pptx
presentationfinal-090714235255-phpapp01 (1) (2).pptxpresentationfinal-090714235255-phpapp01 (1) (2).pptx
presentationfinal-090714235255-phpapp01 (1) (2).pptx
javed75
 
Introduction to data structures and Algorithm
Introduction to data structures and AlgorithmIntroduction to data structures and Algorithm
Introduction to data structures and Algorithm
Dhaval Kaneria
 
Cupdf.com introduction to-data-structures-and-algorithm
Cupdf.com introduction to-data-structures-and-algorithmCupdf.com introduction to-data-structures-and-algorithm
Cupdf.com introduction to-data-structures-and-algorithm
TarikuDabala1
 
Performance analysis and randamized agoritham
Performance analysis and randamized agorithamPerformance analysis and randamized agoritham
Performance analysis and randamized agoritham
lilyMalar1
 
Bounded ant colony algorithm for task Allocation on a network of homogeneous ...
Bounded ant colony algorithm for task Allocation on a network of homogeneous ...Bounded ant colony algorithm for task Allocation on a network of homogeneous ...
Bounded ant colony algorithm for task Allocation on a network of homogeneous ...
ijcsit
 
IJCER (www.ijceronline.com) International Journal of computational Engineerin...
IJCER (www.ijceronline.com) International Journal of computational Engineerin...IJCER (www.ijceronline.com) International Journal of computational Engineerin...
IJCER (www.ijceronline.com) International Journal of computational Engineerin...
ijceronline
 

Similar to Parallel Algorithm mid.pdf (20)

Design & Analysis of Algorithm course .pptx
Design & Analysis of Algorithm course .pptxDesign & Analysis of Algorithm course .pptx
Design & Analysis of Algorithm course .pptx
 
complexity analysis.pdf
complexity analysis.pdfcomplexity analysis.pdf
complexity analysis.pdf
 
Algorithm Analysis.pdf
Algorithm Analysis.pdfAlgorithm Analysis.pdf
Algorithm Analysis.pdf
 
Design and Analysis of Algorithms.pptx
Design and Analysis of Algorithms.pptxDesign and Analysis of Algorithms.pptx
Design and Analysis of Algorithms.pptx
 
Analyzing algorithms
Analyzing algorithmsAnalyzing algorithms
Analyzing algorithms
 
algocomplexity cost effective tradeoff in
algocomplexity cost effective tradeoff inalgocomplexity cost effective tradeoff in
algocomplexity cost effective tradeoff in
 
VCE Unit 01 (1).pptx
VCE Unit 01 (1).pptxVCE Unit 01 (1).pptx
VCE Unit 01 (1).pptx
 
presentationfinal-090714235255-phpapp01 (1) (2).pptx
presentationfinal-090714235255-phpapp01 (1) (2).pptxpresentationfinal-090714235255-phpapp01 (1) (2).pptx
presentationfinal-090714235255-phpapp01 (1) (2).pptx
 
Chap5 slides
Chap5 slidesChap5 slides
Chap5 slides
 
Data Abstraction (Chapter 1)
Data Abstraction (Chapter 1)Data Abstraction (Chapter 1)
Data Abstraction (Chapter 1)
 
Chapter 1 Data structure.pptx
Chapter 1 Data structure.pptxChapter 1 Data structure.pptx
Chapter 1 Data structure.pptx
 
Introduction to data structures and Algorithm
Introduction to data structures and AlgorithmIntroduction to data structures and Algorithm
Introduction to data structures and Algorithm
 
Introduction to data structures and Algorithm
Introduction to data structures and AlgorithmIntroduction to data structures and Algorithm
Introduction to data structures and Algorithm
 
Cupdf.com introduction to-data-structures-and-algorithm
Cupdf.com introduction to-data-structures-and-algorithmCupdf.com introduction to-data-structures-and-algorithm
Cupdf.com introduction to-data-structures-and-algorithm
 
Performance analysis and randamized agoritham
Performance analysis and randamized agorithamPerformance analysis and randamized agoritham
Performance analysis and randamized agoritham
 
Bounded ant colony algorithm for task Allocation on a network of homogeneous ...
Bounded ant colony algorithm for task Allocation on a network of homogeneous ...Bounded ant colony algorithm for task Allocation on a network of homogeneous ...
Bounded ant colony algorithm for task Allocation on a network of homogeneous ...
 
ICS 2410.Parallel.Sytsems.Lecture.Week 3.week5.pptx
ICS 2410.Parallel.Sytsems.Lecture.Week 3.week5.pptxICS 2410.Parallel.Sytsems.Lecture.Week 3.week5.pptx
ICS 2410.Parallel.Sytsems.Lecture.Week 3.week5.pptx
 
Daa notes 1
Daa notes 1Daa notes 1
Daa notes 1
 
Parallel Algorithms: Sort & Merge, Image Processing, Fault Tolerance
Parallel Algorithms: Sort & Merge, Image Processing, Fault ToleranceParallel Algorithms: Sort & Merge, Image Processing, Fault Tolerance
Parallel Algorithms: Sort & Merge, Image Processing, Fault Tolerance
 
IJCER (www.ijceronline.com) International Journal of computational Engineerin...
IJCER (www.ijceronline.com) International Journal of computational Engineerin...IJCER (www.ijceronline.com) International Journal of computational Engineerin...
IJCER (www.ijceronline.com) International Journal of computational Engineerin...
 

Recently uploaded

Call Girls in Uttam Nagar (delhi) call me [🔝9953056974🔝] escort service 24X7
Call Girls in  Uttam Nagar (delhi) call me [🔝9953056974🔝] escort service 24X7Call Girls in  Uttam Nagar (delhi) call me [🔝9953056974🔝] escort service 24X7
Call Girls in Uttam Nagar (delhi) call me [🔝9953056974🔝] escort service 24X7
9953056974 Low Rate Call Girls In Saket, Delhi NCR
 

Recently uploaded (20)

How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17
 
How to Manage Call for Tendor in Odoo 17
How to Manage Call for Tendor in Odoo 17How to Manage Call for Tendor in Odoo 17
How to Manage Call for Tendor in Odoo 17
 
Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...
Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...
Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...
 
Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...
Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...
Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...
 
Single or Multiple melodic lines structure
Single or Multiple melodic lines structureSingle or Multiple melodic lines structure
Single or Multiple melodic lines structure
 
How to setup Pycharm environment for Odoo 17.pptx
How to setup Pycharm environment for Odoo 17.pptxHow to setup Pycharm environment for Odoo 17.pptx
How to setup Pycharm environment for Odoo 17.pptx
 
Google Gemini An AI Revolution in Education.pptx
Google Gemini An AI Revolution in Education.pptxGoogle Gemini An AI Revolution in Education.pptx
Google Gemini An AI Revolution in Education.pptx
 
AIM of Education-Teachers Training-2024.ppt
AIM of Education-Teachers Training-2024.pptAIM of Education-Teachers Training-2024.ppt
AIM of Education-Teachers Training-2024.ppt
 
Interdisciplinary_Insights_Data_Collection_Methods.pptx
Interdisciplinary_Insights_Data_Collection_Methods.pptxInterdisciplinary_Insights_Data_Collection_Methods.pptx
Interdisciplinary_Insights_Data_Collection_Methods.pptx
 
Philosophy of china and it's charactistics
Philosophy of china and it's charactisticsPhilosophy of china and it's charactistics
Philosophy of china and it's charactistics
 
Basic Intentional Injuries Health Education
Basic Intentional Injuries Health EducationBasic Intentional Injuries Health Education
Basic Intentional Injuries Health Education
 
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
 
Call Girls in Uttam Nagar (delhi) call me [🔝9953056974🔝] escort service 24X7
Call Girls in  Uttam Nagar (delhi) call me [🔝9953056974🔝] escort service 24X7Call Girls in  Uttam Nagar (delhi) call me [🔝9953056974🔝] escort service 24X7
Call Girls in Uttam Nagar (delhi) call me [🔝9953056974🔝] escort service 24X7
 
dusjagr & nano talk on open tools for agriculture research and learning
dusjagr & nano talk on open tools for agriculture research and learningdusjagr & nano talk on open tools for agriculture research and learning
dusjagr & nano talk on open tools for agriculture research and learning
 
Simple, Complex, and Compound Sentences Exercises.pdf
Simple, Complex, and Compound Sentences Exercises.pdfSimple, Complex, and Compound Sentences Exercises.pdf
Simple, Complex, and Compound Sentences Exercises.pdf
 
OSCM Unit 2_Operations Processes & Systems
OSCM Unit 2_Operations Processes & SystemsOSCM Unit 2_Operations Processes & Systems
OSCM Unit 2_Operations Processes & Systems
 
Towards a code of practice for AI in AT.pptx
Towards a code of practice for AI in AT.pptxTowards a code of practice for AI in AT.pptx
Towards a code of practice for AI in AT.pptx
 
Graduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - EnglishGraduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - English
 
Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024
 
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...
 

Parallel Algorithm mid.pdf

  • 1. An algorithm is a sequence of instructions followed to solve a problem. A parallel algorithm is an algorithm that can execute several instructions simultaneously on different processing devices and then combine all the individual outputs to produce the final result. The function of concurrent processing that can divide a complex task and process it multiple systems to produce the output in quick time. Concurrent processing is essential where the task involves processing a huge bulk of complex data. Examples include − accessing large databases, aircraft testing, astronomical calculations, atomic and nuclear physics, biomedical analysis, economic planning, image processing, robotics, weather forecasting, web-based services, etc. Model of Computation ➢ Single Instruction stream, Single Data stream (SISD) computers SISD computers contain one control unit, one processing unit, and one memory unit. ➢ Single Instruction stream, Multiple Data stream (SIMD) computers SIMD computers contain one control unit, multiple processing units, and shared memory or interconnection network. ➢ Multiple Instruction stream, Single Data stream (MISD) computers As the name suggests, MISD computers contain multiple control units, multiple processing units, and one common memory unit.
  • 2. ➢ Multiple Instruction stream, Multiple Data stream (MIMD) computers MIMD computers have multiple control units, multiple processing units, and a shared memory or interconnection network. Parallel Algorithm Models – 1. Data parallel model - tasks are assigned to processes. - consequence of single operations. - being applied on multiple data items. - disadvantage - increases with the size. 2. Task Graph Model - quantity of data associated with the tasks. - improve the cost of data movement. - problems are divided into atomic tasks and implemented as a graph.
  • 3. 3. Work Pool Model - dynamically assigned to balancing load. - used when the quantity of data associated with tasks is comparatively smaller than the computation associated with the tasks. - assigning of tasks is centralized. 4. Master-Slave Model - one or more master processes generate task and allocate it to slave processes. Maybe allocated it. - master can estimate the volume of the tasks. - a random assigning can do a satisfactory job of balancing load. - slaves are assigned smaller pieces of task at different times. 5. Pipeline Model - set of data is passed on through a series of processes, each of which performs some tasks on it. - arrival of new data generates the execution of a new task. - chain of producers and consumers. - process in the queue.
  • 4. 6. Hybrid Models - multiple models applied hierarchically Example − Parallel quick sort Time complexity is a measure of the amount of time required by an algorithm to run as a function of the size of its input. It estimates the growth rate of the algorithm's running time relative to the input size. In other words, time complexity provides an understanding of how the algorithm's performance scales with the size of the problem. Classify Time complexity Worst-case complexity − When the amount of time required by an algorithm for a given input is maximum. Average-case complexity − When the amount of time required by an algorithm for a given input is average. Best-case complexity − When the amount of time required by an algorithm for a given input is minimum. Asymptotic notation is the easiest way to describe the fastest and slowest possible execution time for an algorithm using high bounds and low bounds on speed. For this, we use the asymptotic notation in Parallel algorithm. Big O notation In mathematics, Big O notation is used to represent the asymptotic characteristics of functions. The function − f(n) = O(g(n)) If there exists positive constants c and n such that f(n) ≤ c * g(n) for all n where n ≥ n . Omega notation Omega notation is a method of representing the lower bound of an algorithm’s execution time. The function − f(n) = Ω (g(n)) If there exists positive constants c and n such that f(n) ≥ c * g(n) for all n where n ≥ n . Theta Notation Theta notation is a method of representing both the lower bound and the upper bound of an algorithm’s execution time. The function − f(n) = θ(g(n)) If there exists positive constants c ,c , and n such that c1 * g(n) ≤ f(n) ≤ c2 * g(n) for all n where n ≥ n .