Ramakrishna sramki@gmail.com Lecture#2 CAD for VLSI Ramakrishna sramki@gmail.com.

Slides:



Advertisements
Similar presentations
Algorithm Design Methods (I) Fall 2003 CSE, POSTECH.
Advertisements

Neural and Evolutionary Computing - Lecture 4 1 Random Search Algorithms. Simulated Annealing Motivation Simple Random Search Algorithms Simulated Annealing.
Types of Algorithms.
Simulated Annealing Premchand Akella. Agenda Motivation The algorithm Its applications Examples Conclusion.
Reducibility Class of problems A can be reduced to the class of problems B Take any instance of problem A Show how you can construct an instance of problem.
CHAPTER 8 A NNEALING- T YPE A LGORITHMS Organization of chapter in ISSO –Introduction to simulated annealing –Simulated annealing algorithm Basic algorithm.
Algorithm Strategies Nelson Padua-Perez Chau-Wen Tseng Department of Computer Science University of Maryland, College Park.
Simulated Annealing Student (PhD): Umut R. ERTÜRK Lecturer : Nazlı İkizler Cinbiş
1 Chapter 5 Advanced Search. 2 Chapter 5 Contents l Constraint satisfaction problems l Heuristic repair l The eight queens problem l Combinatorial optimization.
Math443/543 Mathematical Modeling and Optimization
MAE 552 – Heuristic Optimization Lecture 6 February 6, 2002.
Nature’s Algorithms David C. Uhrig Tiffany Sharrard CS 477R – Fall 2007 Dr. George Bebis.
Use of Simulated Annealing in Quantum Circuit Synthesis Manoj Rajagopalan 17 Jun 2002.
Placement 1 Outline Goal What is Placement? Why Placement?
Reconfigurable Computing (EN2911X, Fall07)
Simulated Annealing 10/7/2005.
EAs for Combinatorial Optimization Problems BLG 602E.
Ant Colony Optimization Optimisation Methods. Overview.
1 Simulated Annealing Terrance O ’ Regan. 2 Outline Motivation The algorithm Its applications Examples Conclusion.
Simulated Annealing Van Laarhoven, Aarts Version 1, October 2000.
MAE 552 – Heuristic Optimization Lecture 5 February 1, 2002.
ECE669 L10: Graph Applications March 2, 2004 ECE 669 Parallel Computer Architecture Lecture 10 Graph Applications.
Simulated Annealing G.Anuradha. What is it? Simulated Annealing is a stochastic optimization method that derives its name from the annealing process used.
By Rohit Ray ESE 251.  Most minimization (maximization) strategies work to find the nearest local minimum  Trapped at local minimums (maxima)  Standard.
Ch. 11: Optimization and Search Stephen Marsland, Machine Learning: An Algorithmic Perspective. CRC 2009 some slides from Stephen Marsland, some images.
Ant Colony Optimization: an introduction
Escaping local optimas Accept nonimproving neighbors – Tabu search and simulated annealing Iterating with different initial solutions – Multistart local.
1 IE 607 Heuristic Optimization Simulated Annealing.
SPANNING TREES Lecture 21 CS2110 – Spring
The Basics and Pseudo Code
Fundamentals of Algorithms MCS - 2 Lecture # 7
Optimization Problems - Optimization: In the real world, there are many problems (e.g. Traveling Salesman Problem, Playing Chess ) that have numerous possible.
1 Chapter 5 Advanced Search. 2 Chapter 5 Contents l Constraint satisfaction problems l Heuristic repair l The eight queens problem l Combinatorial optimization.
Simulated Annealing.
Thursday, May 9 Heuristic Search: methods for solving difficult optimization problems Handouts: Lecture Notes See the introduction to the paper.
Applications of Dynamic Programming and Heuristics to the Traveling Salesman Problem ERIC SALMON & JOSEPH SEWELL.
CSE 589 Part VI. Reading Skiena, Sections 5.5 and 6.8 CLR, chapter 37.
Single-solution based metaheuristics. Outline Local Search Simulated annealing Tabu search …
Simulated Annealing G.Anuradha.
Hardware Accelerator for Combinatorial Optimization Fujian Li Advisor: Dr. Areibi.
Simulated Annealing. Difficulty in Searching Global Optima starting point descend direction local minima global minima barrier to local search.
Types of Algorithms. 2 Algorithm classification Algorithms that use a similar problem-solving approach can be grouped together We’ll talk about a classification.
Optimization Problems
SPANNING TREES Lecture 20 CS2110 – Fall Spanning Trees  Definitions  Minimum spanning trees  3 greedy algorithms (incl. Kruskal’s & Prim’s)
Heuristic Methods for the Single- Machine Problem Chapter 4 Elements of Sequencing and Scheduling by Kenneth R. Baker Byung-Hyun Ha R2.
An Introduction to Simulated Annealing Kevin Cannons November 24, 2005.
Intro. ANN & Fuzzy Systems Lecture 37 Genetic and Random Search Algorithms (2)
CS621: Artificial Intelligence
Exhaustive search Exhaustive search is simply a brute- force approach to combinatorial problems. It suggests generating each and every element of the problem.
Optimization Problems
Scientific Research Group in Egypt (SRGE)
Hard Problems Some problems are hard to solve.
Simulated Annealing Premchand Akella.
Heuristic Optimization Methods
Van Laarhoven, Aarts Version 1, October 2000
By Rohit Ray ESE 251 Simulated Annealing.
ISP and Egress Path Selection for Multihomed Networks
Subject Name: Operation Research Subject Code: 10CS661 Prepared By:Mrs
Types of Algorithms.
Maria Okuniewski Nuclear Engineering Dept.
Heuristics Definition – a heuristic is an inexact algorithm that is based on intuitive and plausible arguments which are “likely” to lead to reasonable.
Optimization Problems
CSE 589 Applied Algorithms Spring 1999
Metaheuristic methods and their applications. Optimization Problems Strategies for Solving NP-hard Optimization Problems What is a Metaheuristic Method?
School of Computer Science & Engineering
Mental Health and Wellness Resources
Xin-She Yang, Nature-Inspired Optimization Algorithms, Elsevier, 2014
Spanning Trees Lecture 20 CS2110 – Spring 2015.
Simulated Annealing & Boltzmann Machines
Reconfigurable Computing (EN2911X, Fall07)
Presentation transcript:

Ramakrishna sramki@gmail.com Lecture#2 CAD for VLSI Ramakrishna sramki@gmail.com

Combinatorial Optimization E.g Combinatorial Optimization Reference Lecture#2 Outline Combinatorial Optimization E.g Combinatorial Optimization Reference G DeMicheli “Synthesis and Optimization of Digital Circuits” – Ch2- 2.2 – 2.4 © Ramakrishna

Recap Need for CAD? Handling Complexity Graph Terminology Combinatorial Optimization Decision problems Solution with certain characterisitics. Optimization Problems What is best/optimal/exact solution. © Ramakrishna

Different Algorithms Branch-Bound Algorithm: Greedy Algorithm: Part of the Decision tree is evaluated. Sub-trees considered based on Current_Cost Greedy Algorithm: Based on series of local decisions and try to solve the sub problem. Short/long path problems Bellman -- si = min (si, sk+wk,i) i = 1,2 ..n Bellman-ford -- extension to Bellman algorithm which is meant for graphs with cycles. Si j+1 = min[sij, (skj + wk,i)] Liao_Wong Algorithm for long paths. © Ramakrishna

A bin-packing Problem A collection of items T = {t1, t2, t3, …. tn}. Every item tn has an integer size sk. Set of bins B, each with fixed integer size b. Can hold items if the sum of their sizes is b or less Goal: Pack all items, using a minimum number of bins Analogy: 1D packing problem, packing std cells in rows. 2D packing problem – Floor plan 3D packing problem – Multi layer routing, Resource allocation, Stacking. © Ramakrishna

Packing Problem Bins with maximum size of 6 units. We have items with sizes: { 1, 4, 2, 1, 2, 3, 5} Cost function is simply the number of bins – B © Ramakrishna

Greedy Approach Each step, go for local minimum Simple and fast heuristic, does not produce global optimum © Ramakrishna

Greedy Algorithm Contd… Iteratively the final solution will be: {1,4} { 2,1,2} {3} {5} © Ramakrishna

Greedy Algorithm Contd… © Ramakrishna

Greedy Algorithm Contd… © Ramakrishna

Hierarchical approach Partition the problem into smaller sub-problems Initial partitioning {1, 4, 2, 1} {2, 3, 5} => {1,4} {2,1} {2, 3} {5} © Ramakrishna

Simulated Annealing Exploits the metal cooling and freeze into a crystalline structure (minimum energy structure, the annealing process). Metropolis, N., Rosenbluth, A.W., Rosenbluth, M. N., Teller, A.H. and Teller, E., Equations of State Calculations by Fast Computing Machines, J. Chem. Phys. 21, 1087- 1092, 1958. This paper/algorithm proposes a means of finding the equilibrium configuration of a collection of atoms at a given temperature. © Ramakrishna

Simulated Annealing Contd… Pincus figured the connection of this algorithm to the mathematical minimization and Kirkpatrick, S., Gerlatt, C. D. Jr., and Vecchi, M.P., Optimization by Simulated Annealing, Science 220, 671-680, 1983 showed it forms the basis of an optimization technique for combinatorial problems. SA has the ability to avoid becoming trapped at local minima. It uses random search and accepts changes that decrease the objective function f, but also accepts that increase it. Changes that impact the objective function and increases it, SA incorporates them with a probability. © Ramakrishna

Simulated Annealing Contd… Step 1: Initialize – Start with a random assumption, Initialize a very high “temperature” Step 2: Move – Perturb the system through a defined move Step 3: Calculate score – calculate the change, due to the above move Step 4: Choose -- Accept or reject the current move. The probability of acceptance depending on current temperature. Step 5: Update and repeat – Update the temperature and move back to Step 2. Continue the above process until Freezing Point is reached. © Ramakrishna

Simulated Annealing Contd… Pseudo Code: Start with the system in known configuration, T = temperature = hot; frozen = false; While (! Frozen) { Repeat { Perturb system slightly Compute ΔE, change in energy due to above move If (ΔE < 0) Accept it with probability = e – ΔE/T } until (the system in thermal equilibrium at this T) If (E still decreasing over the last few temperatures) Then T = 0.x T Else frozen = true } © Ramakrishna

Simulated Annealing Start with any feasible solution. Try to merge bins (improve) At the beginning, allow splitting of bins (may make the cost worse) Moves between solutions are probabilistic Entire process is random Merge: Choose two random bins and try to merge it Split: Choose a random bin and split it up © Ramakrishna

Simulated Annealing Contd… © Ramakrishna

Simulated Annealing Contd… © Ramakrishna

Simulated Annealing Contd…. © Ramakrishna

Simulated Annealing Contd…. © Ramakrishna

Simulated Annealing Contd…. © Ramakrishna

Class Work Derive the same using Exhaustive search (5) Provide the detailed tree. Apply the simulated annealing algorithm for a TSP with the given “N cities and distances among them, find a shortest tour of N cities by visiting each city exactly once and returning to starting city”. (5) Cost of traveling is represented as a matrix: © Ramakrishna