Parallel Programming in C with the Message Passing Interface.ppt


文档分类: | 页数:约62页 举报非法文档有奖
1/62
下载提示
  • 1.该资料是网友上传的,本站提供全文预览,预览什么样,下载就什么样。
  • 2.下载该文档所得收入归上传者、原创者。
  • 3.下载的文档,不会出现我们的网址水印。
1/62
文档列表 文档介绍
Today’s Outline
Chapter binatorial Search
Terminology
Divide and conquer
Backtrack plex munication
Branch and bound
Searching game trees
Combinatorial Search: Examples
Laying out circuits in VLSI
Planning motion of robot arms
Assigning crews to airline flights, roommates to dorm rooms
Proving theorems
Playing games
We’ll Study binatorial Search Methods
Divide and conquer
Backtrack search
Branch and bound
Alpha-beta search
State-space Search Tree
Each node represents a problem or sub-problem
Root of tree: initial problem to be solved
Children of a node created by adding constraints
AND node: to find solution, must solve problems represented by all children nodes
OR node: to find solution, solve any of problems represented by children nodes
Search Tree (cont.)
AND tree
Contains only AND nodes
Divide-and-conquer algorithms
OR tree
Contains only OR nodes
Backtrack search and branch and bound
AND/OR tree
Contains both AND and OR nodes
Game trees
Divide and Conquer
Divide-and-conquer methodology
Partition a problem into subproblems
Solve the bine solutions to subproblems
Recursive: subproblems may be solved using the divide-and-conquer methodology
Example: quicksort, mergesort
Centralized Multiprocessor Divide and Conquer
Unsolved subproblems kept in one stack
Processors needing work can access stack
Processors with extra work can put it on the stack
Effective workload balancing mechanism
Stack can e a bottleneck as number of processors increases
Backtrack Search
Uses depth-first search (in OR-tree) to consider alternative solutions to binatorial search problem
Recursive algorithm
Backtrack occurs when
A node has no children (“dead end”)
All of a node’s children have been explored
Example: Crossword Puzzle Creation
Given
Blank crossword puzzle
Dictionary of words and phrases
Assign letters to blank spaces so that all puzzle’s horizontal and vertical “words” are from the dictionary
Halt as soon as a solution is found
Crossword Puzzle Problem
Given a blan

Parallel Programming in C with the Message Passing Interface 来自淘豆网www.taodocs.com转载请标明出处.

相关文档 更多>>
非法内容举报中心
文档信息
  • 页数62
  • 收藏数0 收藏
  • 顶次数0
  • 上传人86979448
  • 文件大小394 KB
  • 时间2018-03-10