THEORY EXAMINATION (SEM–VI) 2016-17 PARALLEL ALGORITHM

B.Tech General 0 downloads
₹29.00

PARALLEL ALGORITHM (NCS063)

Section-wise Solved Answers & Notes


SECTION – A (10 × 2 = 20 Marks)

Very short answers (2 marks each)

 

(a) Speed-up

Speed-up is the ratio of execution time of best sequential algorithm to parallel algorithm.

Speed-up=TsTp\text{Speed-up} = \frac{T_s}{T_p}Speed-up=Tp​Ts​​ 

 

(b) SIMD

SIMD (Single Instruction Multiple Data) is a parallel model where same instruction operates on multiple data simultaneously.

 

(c) Hypercube connection

A hypercube is an interconnection network where each node is connected to log₂N neighbors, forming an n-dimensional cube.

 

(d) Time required for Bitonic sorting on PRAM

Bitonic sorting requires O((log n)²) time on PRAM.

 

(e) Parallel Prim’s MST algorithm time

Using p processors for a graph with n nodes, the time complexity is:

O(n2p)O\left(\frac{n^2}{p}\right)O(pn2​) 

 

(f) Task-throughput

Task-throughput is the number of tasks completed per unit time by a parallel system.

 

(g) Complexity of prefix sum in PRAM

Prefix sum can be computed in O(log n) time using PRAM.

 

(h) Common CRCW PRAM

CRCW PRAM allows multiple processors to read and write simultaneously, and common CRCW allows writing only if values are same.

 

(i) Data-parallel computation

A computation where same operation is performed on different data elements in parallel.

 

(j) Permutation vs Combination

PermutationCombination
Order mattersOrder does not matter
nPrnCr

SECTION – B (Any 5 × 10 = 50 Marks)

 

(a) Butterfly Model

Butterfly network is a multistage interconnection network used in FFT and sorting.
It consists of log₂N stages and provides low communication delay.
(Diagram compulsory in exam)

 

(b) PRAM Computational Model

PRAM (Parallel Random Access Machine) assumes processors share a common memory.

Types:
EREW – Exclusive Read Exclusive Write                • CREW – Concurrent Read Exclusive Write


(c) Performance Measures of Parallel Algorithm

• Speed-up                                                              • Efficiency
• Cost                                                                       • Scalability

Example:
Efficiency = Speed-up / Number of processors

 

(d) Bitonic Merge

Bitonic merge combines two bitonic sequences into one sorted sequence using compare-exchange operations.
Used in Bitonic sorting network.

 

(e) Cost-optimality

A parallel algorithm is cost-optimal if:

Cost=Parallel time×Processors=O(Ts)\text{Cost} = \text{Parallel time} \times \text{Processors} = O(T_s)Cost=Parallel time×Processors=O(Ts​)

Example: Parallel prefix sum.

 

(f) Parallel Branch and Bound

Used for combinatorial optimization problems.
Search space is divided among processors, and sub-optimal branches are pruned in parallel.

 

(g) Hypercube vs Shuffle-Exchange Network

HypercubeShuffle-Exchange
log₂N connectionsFixed shuffle pattern
Low diameterSimple design
ScalableLess scalable

(h) Parallel Sorting Networks & Enumeration Sort

Sorting network is a fixed sequence of comparison operations.

Enumeration sort assigns rank to each element and places it accordingly.

 

SECTION – C (Any 2 × 15 = 30 Marks)

 

Q3 (i) Amdahl Effect & Amdahl’s Law

Amdahl’s Law states that speed-up is limited by the sequential portion of the program.

S=1(1−P)+PNS = \frac{1}{(1-P) + \frac{P}{N}}S=(1−P)+NP​1​

Where:
P = parallel fraction, N = processors

 

Q3 (ii) BFS & DFS (Parallel Graph Traversal)

Breadth-First Search (BFS)                                                               Explores graph level by level.
Parallel BFS assigns nodes of same level to different processors.   Depth-First Search (DFS)

Explores deep paths first.                                                               Parallel DFS uses task splitting.

 

Q4 Parallel Alpha-Beta Search

Used in game tree search.
Prunes branches that cannot affect final decision, reducing search space.


Q5 Data Parallelism                                                                          Data Parallelism

Same operation on multiple data items.                                          Comparison:

Data ParallelismTask Parallelism
Same task, different dataDifferent tasks
SIMD styleMIMD style
Data ParallelismModel Parallelism
Data splitModel split
Used in arraysUsed in ML models
File Size
75.99 KB
Uploader
SuGanta International
⭐ Elite Educators Network

Meet Our Exceptional Teachers

Discover passionate educators who inspire, motivate, and transform learning experiences with their expertise and dedication

KISHAN KUMAR DUBEY

KISHAN KUMAR DUBEY

Sant Ravidas Nagar Bhadohi, Uttar Pradesh , Babusarai Market , 221314
5 Years
Years
₹10000+
Monthly
₹201-300
Per Hour

This is Kishan Kumar Dubey. I have done my schooling from CBSE, graduation from CSJMU, post graduati...

Swethavyas bakka

Swethavyas bakka

Hyderabad, Telangana , 500044
10 Years
Years
₹10000+
Monthly
₹501-600
Per Hour

I have 10+ years of experience in teaching maths physics and chemistry for 10th 11th 12th and interm...

Vijaya Lakshmi

Vijaya Lakshmi

Hyderabad, Telangana , New Nallakunta , 500044
30+ Years
Years
₹9001-10000
Monthly
₹501-600
Per Hour

I am an experienced teacher ,worked with many reputed institutions Mount Carmel Convent , Chandrapu...

Shifna sherin F

Shifna sherin F

Gudalur, Tamilnadu , Gudalur , 643212
5 Years
Years
₹6001-7000
Monthly
₹401-500
Per Hour

Hi, I’m Shifna Sherin! I believe that every student has the potential to excel in Math with the righ...

Divyank Gautam

Divyank Gautam

Pune, Maharashtra , Kothrud , 411052
3 Years
Years
Not Specified
Monthly
Not Specified
Per Hour

An IIT graduate having 8 years of experience teaching Maths. Passionate to understand student proble...

Explore Tutors In Your Location

Discover expert tutors in popular areas across India

Personal Fitness Training Near Palam Vihar – Transform Your Body with Expert Guidance Palam Vihar, Gurugram
Harmonium Classes Near DLF Golf Course Road – Learn Classical & Devotional Music Gurugram
Music Theory & Composition Near DLF Cyber City – Master the Language of Music DLF Cyber City, Gurugram
Spanish Language Classes Near Sector 113 Noida – Learn Spanish with Professional Training Noida
Guitar Classes Near Vasant Kunj – Learn Guitar with Expert Trainers in South Delhi Vasant Kunj, Delhi
Spoken English Classes Near By Kirti Nagar Improve Fluency, Build Confidence & Unlock Career Opportunities in 2026 Kirti Nagar, Delhi
Yoga Classes Near Malviya Nagar Build Strength, Reduce Stress & Transform Your Lifestyle with Professional Yoga Training in 2026 Malviya Nagar, Delhi
Resume & Interview Coaching Near By Sector 102 Gurugram (Dwarka Expressway) – Build Confidence, Crack Interviews, Get Hired Sector 102, Gurugram
Spoken English Classes Near Khanna Market By Improve Fluency, Build Confidence & Unlock Global Opportunities in 2026 Khanna Market, Delhi
Meditation Coaching Near Sector 128 Noida – A Complete Guide to Inner Peace and Mental Wellness Sector 128, Noida
Graphic Designing Course Near Sector 61 Gurugram – Build Creative Skills & Start Your Design Career Gurugram
Science Classes Near By Dwarka Mor – Build Strong Concepts in Physics, Chemistry & Biology Dwarka Mor, Delhi
Legal Documentation Assistance Near Sector 102A Gurugram (Dwarka Expressway) – Reliable, Professional & Hassle-Free Services Village Dhankot, Sector 102, Gurugram
Digital Marketing Course Near Sector 62 Gurugram – Master Online Growth & Build a High-Demand Career Sector 62, Gurugram
Spoken English Classes Near By Punjabi Bagh Improve Fluency, Build Confidence & Unlock Career Opportunities in 2026 Punjabi Bagh, Delhi
Diet & Nutrition Consultation Near By Nangli – Personalized Health & Wellness Guidance Nangli, Delhi
Spoken English Classes Near By Mehrauli Build Fluency, Improve Confidence & Unlock Better Opportunities in 2026 Mehrauli, Delhi
UI/UX Designing Course Near Sector 66 Gurugram – Build a Creative & High-Paying Design Career Sector 66, Gurugram
Digital Marketing Classes Near Noida Sector 96 – Learn Modern Marketing Skills and Build a Successful Career Noida
Competitive Exam Coaching Near Dwarka Mor Complete Preparation for Government & Entrance Exams with Expert Guidance Dwarka Mor, Delhi
⭐ Premium Institute Network

Discover Elite Educational Institutes

Connect with top-tier educational institutions offering world-class learning experiences, expert faculty, and innovative teaching methodologies

Réussi Academy of languages

sugandha mishra

Réussi Academy of languages
Madhya pradesh, Indore, G...

Details

Coaching Center
Private
Est. 2021-Present

Sugandha Mishra is the Founder Director of Réussi Academy of Languages, a premie...

IGS Institute

Pranav Shivhare

IGS Institute
Uttar Pradesh, Noida, Sec...

Details

Coaching Center
Private
Est. 2011-2020

Institute For Government Services

Krishna home tutor

Krishna Home tutor

Krishna home tutor
New Delhi, New Delhi, 110...

Details

School
Private
Est. 2001-2010

Krishna home tutor provide tutors for all subjects & classes since 2001

Edustunt Tuition Centre

Lakhwinder Singh

Edustunt Tuition Centre
Punjab, Hoshiarpur, 14453...

Details

Coaching Center
Private
Est. 2021-Present
Great success tuition & tutor

Ginni Sahdev

Great success tuition & tutor
Delhi, Delhi, Raja park,...

Details

Coaching Center
Private
Est. 2011-2020