12
COMP308 COMP308 Efficient Parallel Efficient Parallel Algorithms Algorithms Revision

COMP308 Efficient Parallel Algorithms Revision. COMP 308 Exam Time allowed : 2.5 hours Answer four questions (out of five). If you attempt to answer

Embed Size (px)

Citation preview

Page 1: COMP308 Efficient Parallel Algorithms Revision. COMP 308 Exam Time allowed : 2.5 hours Answer four questions (out of five).  If you attempt to answer

COMP308COMP308Efficient Parallel Efficient Parallel Algorithms Algorithms Revision

Page 2: COMP308 Efficient Parallel Algorithms Revision. COMP 308 Exam Time allowed : 2.5 hours Answer four questions (out of five).  If you attempt to answer

COMP 308 ExamCOMP 308 ExamTime allowed : 2.5 hoursAnswer four questions (out of

five). If you attempt to answer more questions

than the required number of questions, the marks awarded for the excess questions will be discarded (starting with your lowest mark).

In each question you will see 3 problems which usually marked as 10,10 and 5

Page 3: COMP308 Efficient Parallel Algorithms Revision. COMP 308 Exam Time allowed : 2.5 hours Answer four questions (out of five).  If you attempt to answer

Topics:Topics:

MetricsPRAM modelPRAM

algorithmsTree algorithmsGraph

algorithmsMesh connected

networks & Sorting

Sorting NetworksCommunication

algorithmsParallel Virtual

MachineUnconventional

models and paradigms

Page 4: COMP308 Efficient Parallel Algorithms Revision. COMP 308 Exam Time allowed : 2.5 hours Answer four questions (out of five).  If you attempt to answer

1. Metrics and basic 1. Metrics and basic notionsnotions

Parallel timeCostEfficiency,Speed-up, Bounds (Amdahl Law)------------------------------------------------------Complexity Classes: NC, PTractable and intractable problems

for parallel computers (P-complete problems)

S( p) =T1

Tp

Efficiency =Sp

p

Cost = p Tp

fS

1

Upper bound on speedup

Page 5: COMP308 Efficient Parallel Algorithms Revision. COMP 308 Exam Time allowed : 2.5 hours Answer four questions (out of five).  If you attempt to answer

Basics of parallel Basics of parallel computingcomputingCoarse and fine grained computationsModels

◦ PRAM model EREW, CRCW, CREW, ERCW

◦ MIMD, SISD, SIMD, MISD Network topologies:

◦ Ring, Mesh, Tree, Hypercube

Page 6: COMP308 Efficient Parallel Algorithms Revision. COMP 308 Exam Time allowed : 2.5 hours Answer four questions (out of five).  If you attempt to answer

2. PRAM algorithms2. PRAM algorithmsActivation of n processorsFinding minimum of n numbersSum of elements in an arrayComputing of the first 1 in the

sequence of 0’s and 1’sSimulation of CRCW algorithm by

EREW model

Page 7: COMP308 Efficient Parallel Algorithms Revision. COMP 308 Exam Time allowed : 2.5 hours Answer four questions (out of five).  If you attempt to answer

3. Basic parallel 3. Basic parallel techniquestechniquesBalanced binary tree techniqueDoubling technique Parallel divide and conquerThe Euler-tour technique

Page 8: COMP308 Efficient Parallel Algorithms Revision. COMP 308 Exam Time allowed : 2.5 hours Answer four questions (out of five).  If you attempt to answer

4. Tree and Graph 4. Tree and Graph algorithmsalgorithmsList ranking problemParallel prefix sum computationParallel algorithms for expression

evaluation ◦ Simultaneous Substitutions Method◦ A parallel pebble game

Parallel Computation of Transitive Closure Problem (Warshall algorithm)◦ Coarse grained vs. Fine grained

Parallel construction of Euler cycles.

Page 9: COMP308 Efficient Parallel Algorithms Revision. COMP 308 Exam Time allowed : 2.5 hours Answer four questions (out of five).  If you attempt to answer

5. Sorting algorithms5. Sorting algorithmsMesh connected networks.

◦Sorting on 1-dim mesh ◦Sorting on 2-dim mesh

Comparison networks◦The zero-one principle◦Bitonic and Merging sorting networks◦Batcher’s merging network

You need to be able to construct sorting networks

Page 10: COMP308 Efficient Parallel Algorithms Revision. COMP 308 Exam Time allowed : 2.5 hours Answer four questions (out of five).  If you attempt to answer

6. Parallel Virtual Machine 6. Parallel Virtual Machine (PVM)(PVM)Basics of Message-Passing ProgrammingBroadcastScatterGatherReduce

Page 11: COMP308 Efficient Parallel Algorithms Revision. COMP 308 Exam Time allowed : 2.5 hours Answer four questions (out of five).  If you attempt to answer

7. Communication 7. Communication operationsoperations

Store and forward routing Cut-through routingBroadcasting problem

◦ Broadcast on ring◦ Broadcast on mesh◦ Broadcast on tree◦ Broadcast on hypercube

Gossiping problem

Page 12: COMP308 Efficient Parallel Algorithms Revision. COMP 308 Exam Time allowed : 2.5 hours Answer four questions (out of five).  If you attempt to answer

Unconventional models Unconventional models and paradigmsand paradigms Cellular automaton

◦ Majority problem – Rule 184◦ Simulation with 2D environment

Swarm algorithms◦ Swarming – Characteristics◦ Culture model and Adaptive Culture model

Membrane computing: P-systems◦ Basic definition, ◦ Maximal parallelism in membrane computation model ◦ Square function and divisibility

DNA computing◦ Adleman Experiment: Hamiltonian Path Problem

Quantum computations◦ Deutsch's problem. Main ideas of quantum

computations, quantum information.