EE382V: System-on-a-Chip (SoC) Design

Size: px
Start display at page:

Download "EE382V: System-on-a-Chip (SoC) Design"

Transcription

1 EE82V: SystemonChip (SoC) Design Lecture EE82V: SystemonaChip (SoC) Design Lecture Operation Scheduling Source: G. De Micheli, Integrated Systems Center, EPFL Synthesis and Optimization of Digital Circuits, McGraw Hill, 2. Additional sources: Notes by Kia Bazargan, Notes by Rajesh Gupta, UCSD, Andreas Gerstlauer Electrical and Computer Engineering University of Teas at Austin Lecture : Outline The scheduling problem Case analysis Unconstrained scheduling ASAP and ALAP schedules Resource constrained (RC) scheduling List scheduling Time constrained (TC) scheduling Forcedirected scheduling Advanced scheduling problems Chaining Pipelining EE82V: SoC Design, Lecture G. De Micheli 2 2 A. Gerstlauer

2 EE82V: SystemonChip (SoC) Design Lecture Scheduling Circuit model: Sequencing graph Cycletime is given Operation delays epressed in cycles Scheduling: Determine the start times for the operations Satisfying all the sequencing (timing and resource) constraint Goal: Determine area/latency tradeoff EE82V: SoC Design, Lecture G. De Micheli Eample < n TIME 2 8 TIME < TIME TIME n EE82V: SoC Design, Lecture G. De Micheli 2 A. Gerstlauer 2

3 EE82V: SystemonChip (SoC) Design Lecture Operation Scheduling Input: Sequencing graph G(V, E), with n vertices Cycle time Operation delays D = {d i : i=..n} Output: Schedule determines start time t i of operation v i. Latency = t n t. Goal: determine area / latency tradeoff Classes: Nonhierarchical and unconstrained Latency constrained Resource constrained Hierarchical EE82V: SoC Design, Lecture R. Gupta G. De Micheli Simplest Method All operations have bounded delays All delays are in cycles: Cycletime is given No constraints no bounds on area Goal: Minimize latency EE82V: SoC Design, Lecture G. De Micheli 2 A. Gerstlauer

4 EE82V: SystemonChip (SoC) Design Lecture Min Latency Unconstrained Scheduling Simplest case: no constraints, find min latency Given set of vertices V, delays D and a partial order > on operations E, find an integer labeling of operations : V Z such that: t i = (v i ) t i t j d j (v j, v i ) E and = t n t is minimum Solvable in polynomial time Bounds on latency for resource constrained problems ASAP algorithm used: topological order EE82V: SoC Design, Lecture R. Gupta G. De Micheli 7 ASAP Schedules Schedule v at t = While (v n not scheduled) Select v i with all scheduled predecessors Schedule v i at t i = ma {t j d j }, v j being a predecessor of v i Return t n 2 < EE82V: SoC Design, Lecture R. Gupta G. De Micheli 8 2 A. Gerstlauer

5 EE82V: SystemonChip (SoC) Design Lecture ALAP Schedules Schedule v n at t n =l While (v not scheduled) Select v i with all scheduled successors Schedule v i at t i = min {t j d j }, v j being a succecessor of v i 2 < EE82V: SoC Design, Lecture R. Gupta G. De Micheli 9 Remarks ALAP solves a latencyconstrained problem Latency bound can be set to latency computed by ASAP algorithm Mobility Defined for each operation Difference between ALAP and ASAP schedule Slack on the start time EE82V: SoC Design, Lecture G. De Micheli 2 A. Gerstlauer

6 EE82V: SystemonChip (SoC) Design Lecture Eample Operations with zero mobility: { v, v 2, v, v, v } Critical path Operations with mobility one: { v, v 7 } Operations with mobility two: { v 8, v 9, v, v } < TIME TIME 2 TIME TIME < n n EE82V: SoC Design, Lecture G. De Micheli Lecture : Outline The scheduling problem Unconstrained scheduling Resource constrained (RC) scheduling Eact formulations ILP Hu s algorithm Heuristic methods List scheduling Time constrained (TC) scheduling Advanced scheduling problems EE82V: SoC Design, Lecture G. De Micheli 2 2 A. Gerstlauer

7 EE82V: SystemonChip (SoC) Design Lecture Scheduling under Resource Constraints Classical scheduling problem Fi area bound minimize latency (MLRCS) Minimum latency resource constrained scheduling The amount of available resources affects the achievable latency Dual problem: Fi latency bound minimize resources (MRLCS) Minimum resources latency constrained scheduling Assumption: All delays bounded and known EE82V: SoC Design, Lecture G. De Micheli MLRCS Given a set of ops V with integer delays D a partial order on the operations E upper bounds { a k ; k =, 2,, n res } on resource usage Find an integer labeling : V Z such that: t i = ( v i ), t i t j d j for all i,j s.t. (v j, v i ) E, {v i T(v i ) = k and t i l < t j d j } a k for all types k =,2,,n res and steps l and t n is minimum Intractable problem EE82V: SoC Design, Lecture G. De Micheli 2 A. Gerstlauer 7

8 EE82V: SystemonChip (SoC) Design Lecture ILP Formulation Binary decision variables X = { il, i =,2,. n; l =,2,, λ } il is TRUE only when operation v i starts in step l of the schedule ( i.e. l = t i ) λ is an upper bound on latency Start time of operation v i : Σ l l. il EE82V: SoC Design, Lecture G. De Micheli ILP Constraints Operations start only once Σ il = i =, 2,, n Sequencing relations must be satisfied t i t j d j t i t j d j for all (v j, v i ) є E Σ l il Σ l jl d j for all (v j, v i ) є E Resource bounds must be satisfied Simple case (unit delay) Σ l il a k k =,2, n res ; for all l i:t(v i )=k EE82V: SoC Design, Lecture G. De Micheli 2 A. Gerstlauer 8

9 EE82V: SystemonChip (SoC) Design Lecture Start Time vs. Eecution Time For each operation v i, only one start time If d i =, then the following questions are the same: Does operation v i start at step l? Is operation v i running at step l? But if d i >, the two questions should be formulated as: Does operation v i start at step l? Does il = hold? l Is operation v i running at step l? Does the following hold?? im ml d i EE82V: SoC Design, Lecture K. Bazargan G. De Micheli 7 Operation v i Still Running at Step l? Is v 9 running at step? Is 9, 9, 9, =? v 9 v 9 v 9 9, = 9, = 9, = Note: Only one (if any) of the above three cases can happen To meet resource constraints, we have to ask the same question for ALL steps, and ALL operations of that type EE82V: SoC Design, Lecture K. Bazargan G. De Micheli 8 2 A. Gerstlauer 9

10 EE82V: SystemonChip (SoC) Design Lecture Operation v i Still Running at Step l? Is v i running at step l? Is i,l i,l... i,ldi =? ld i ld i ld i... l... l l v i l v i l v i l i,l = i,l = i,ldi = EE82V: SoC Design, Lecture K. Bazargan G. De Micheli 9 ILP Formulation of MLRCS Constraints: Unique start times: Sequencing (dependency) relations must be satisfied t i j Resource constraints l j Objective: min c T t t = start times vector, c = cost weight (e.g., [... ]) When c = [... ], c T t = j i l, i,,, n il t d ( v, v ) E l. l. im it : ( v ) k ml d i i a k, k,, n l. l EE82V: SoC Design, Lecture K. Bazargan G. De Micheli 2 nl l res il, l jl d l,, j 2 A. Gerstlauer

11 EE82V: SystemonChip (SoC) Design Lecture ILP Eample < Resource constraints 2 ALUs; 2 Multipliers a = 2; a 2 = 2 Singlecycle operation d i = for all i n EE82V: SoC Design, Lecture G. De Micheli 2 ILP Eample Assume = First, perform ASAP and ALAP (we can write the ILP without ASAP and ALAP, but using ASAP and ALAP will simplify the inequalities) 2 v v v7 v9 < v v2 v v8 v v 2 v v v v2 v v7 v8 v v vn v vn v9 < v EE82V: SoC Design, Lecture K. Bazargan G. De Micheli 22 2 A. Gerstlauer

12 EE82V: SystemonChip (SoC) Design Lecture ILP Eample: Unique Start Times Without using ASAP and ALAP values: , 2,,,2 2,2,2, 2,,, 2,, Using ASAP and ALAP:... EE82V: SoC Design, Lecture K. Bazargan G. De Micheli 2, 2,,2,,, 7,2 8, 9,2,2 7, 8,2 9, 8, 9, ILP Eample: Dependency Constraints Using ASAP and ALAP, the nontrivial inequalities are: (assuming unit delay for and ) 2. 2.,2 9,2.., 9, n,, n, 7,2 9, ,, 9,2,2 8, 7, , 8,2,2 7,2 9,, ,2 8,, 7, 9,, EE82V: SoC Design, Lecture K. Bazargan G. De Micheli 2 2 A. Gerstlauer 2

13 EE82V: SystemonChip (SoC) Design Lecture ILP Eample: Resource Constraints Resource constraints (assuming 2 adders and 2 multipliers),2,, 9,2,2 9,, 2,,2,, Objective: Since = and sink has no mobility, any feasible solution is optimum, but we can use the following anyway: Min n, 2. n,2. n,. n, 9,,,2, EE82V: SoC Design, Lecture K. Bazargan G. De Micheli 2, 7,2 7, 8, 8,2 8, ILP Eample: Solution TIME 2 TIME 2 < TIME 7 8 TIME 9 n EE82V: SoC Design, Lecture G. De Micheli 2 2 A. Gerstlauer

14 EE82V: SystemonChip (SoC) Design Lecture MRLCS Dual ILP formulation Minimize resource usage under latency constraint Additional constraint Latency bound must be satisfied Σ l l nl λ Resource usage is unknown in the constraints Resource usage is the objective to minimize EE82V: SoC Design, Lecture G. De Micheli 27 MRLCS ILP Eample TIME 2 TIME 2 < TIME 7 8 TIME 9 Cost function Multiplier area = ALU area = Objective function: a a 2 n EE82V: SoC Design, Lecture G. De Micheli 28 2 A. Gerstlauer

15 EE82V: SystemonChip (SoC) Design Lecture ILP Solving Use standard ILP packages Transform into LP problem Advantages Eact method Others constraints can be incorporated Disadvantages Works well up to few thousand variables EE82V: SoC Design, Lecture G. De Micheli 29 Hu s Algorithm Simple case of the scheduling problem Operations of unit delay Operations (and resources) of the same type Hu s algorithm Greedy, polynomial and optimal (eact) Computes lower bound on number of resources for given latency OR Computes lower bound on latency subject to resource constraints Basic idea Label operations based on their distances from the sink Try to schedule nodes with higher labels first (i.e., most critical operations have priority) EE82V: SoC Design, Lecture R. Gupta G. De Micheli 2 A. Gerstlauer

16 EE82V: SystemonChip (SoC) Design Lecture Hu s Algorithm with ā Resources Label operations with distance to sink Set step l = Repeat until all ops are scheduled U = unscheduled vertices in V Predecessors have been scheduled (or no predecessors) Select S U resources with S ā Maimal labels Schedule the S operations at step l Increment step l = l EE82V: SoC Design, Lecture G. De Micheli Hu s Algorithm Eample Assumptions One resource type only All operations have unit delay Labels Distance to sink EE82V: SoC Design, Lecture G. De Micheli 2 n 2 A. Gerstlauer

17 EE82V: SystemonChip (SoC) Design Lecture Hu s Algorithm Eample _ a = Step : Op,2, Step 2: Op,7,8 Step : Op,9, Step : Op, n EE82V: SoC Design, Lecture G. De Micheli List Scheduling Heuristic method for: Min latency subject to resource bound (MLRCS) Min resource subject to latency bound (MRLCS) Greedy strategy (like Hu s) Does not guarantee optimality (unlike Hu s) General graphs (unlike Hu s) Resource constraints on different resource types Operations of arbitrary delay Priority list heuristics Priority decided by criticality (similar to Hu s) Longest path to sink, longest path to timing constraint O(n) time compleity EE82V: SoC Design, Lecture K. Bazargan G. De Micheli 2 A. Gerstlauer 7

18 EE82V: SystemonChip (SoC) Design Lecture List Scheduling for Minimum Latency LIST_L( G(V, E), a) { l = ; repeat { for each resource type k =, 2,, n res { Determine ready operations U l,k ; Determine unfinished operations T l,k ; Select S k U l,k vertices, s.t. S k T l,k a k ; Schedule the S k operations at step l; } l = l ; } until (v n is scheduled) ; return (t); } EE82V: SoC Design, Lecture G. De Micheli List Scheduling Eample < TIME 2 n TIME 2 TIME 7 8 < TIME Resource bounds TIME multipliers with delay 2 TIME ALU with delay TIME 7 9 EE82V: SoC Design, Lecture G. De Micheli n 2 A. Gerstlauer 8

19 EE82V: SystemonChip (SoC) Design Lecture Lecture : Outline The scheduling problem Unconstrained scheduling Resource constrained (RC) scheduling Time constrained (TC) scheduling Eact methods ILP formulations Hu s algorithm Heuristics List scheduling Forcedirected scheduling Advanced scheduling problems EE82V: SoC Design, Lecture G. De Micheli 7 List Scheduling for Minimum Resources LIST_R( G(V, E), λ) { a = ; Compute the latest possible start times t L by ALAP ( G(V, E), λ); if (t < ) L return (Ø); l = ; repeat { } for each resource type k =, 2,, n res { L Determine ready operations U l,k ; Compute the slacks { s i = t i l for all v i є U lk }; Schedule candidate operations with zero slack and update a; Schedule candidate operations not needing addt l resources; } l = l ; } until (v n is scheduled) ; return (t, a); EE82V: SoC Design, Lecture G. De Micheli 8 2 A. Gerstlauer 9

20 EE82V: SystemonChip (SoC) Design Lecture List Scheduling Eample < Step Two multiplications on CP Set a = 2 Schedule Mult,2 Schedule ALU Step 2 Schedule Mult, Schedule ALU Step Schedule Mult 7,8 Schedule ALU Step Set a 2 =2 Schedule ALU, 9 n TIME 2 Assumptions Unitdelay resources Maimum latency = Start with a = multiplier a 2 = ALUs TIME 2 TIME TIME n EE82V: SoC Design, Lecture G. De Micheli < ForceDirected Scheduling (FDS) Heuristic, similar to list scheduling Can handle MLRCS and MRLCS For MLRCS, schedules stepbystep BUT, selection of the operations tries to find the globally best set of operations Idea [Paulin] Find the mobility μ i = t i L ti S of operations (ALAPASAP) Look at the operation type probability distributions Try to flatten the operation type distributions Definition: operation probability density p i ( l )=Pr{v i eecutes in step l } ( ) S L Assume uniform distribution: p l for l[ t, t ] EE82V: SoC Design, Lecture R. Gupta G. De Micheli i i i i 2 A. Gerstlauer 2

21 EE82V: SystemonChip (SoC) Design Lecture ForceDirected Scheduling: Definitions Operationtype distribution (sum of operation probabilities for each type) qk ( l) pi ( l) it : ( vi ) k Operation probabilities over control steps pi { pi (), pi (),, pi ( n)} Distribution graph of type k over all steps { qk (), qk (),, qk ( n)} q k ( l ) can be thought of as epected operator cost for implementing operations of type k at step l EE82V: SoC Design, Lecture K. Bazargan G. De Micheli ForceDirected Scheduling Eample q q q q add add add add (). (2) () 2 () < () (2) ().8 2 () EE82V: SoC Design, Lecture K. Bazargan G. De Micheli 2 q q q q mult mult mult mult A. Gerstlauer 2

22 EE82V: SystemonChip (SoC) Design Lecture ForceDirected Scheduling Algorithm Very similar to LIST_L(G(V,E), a) Compute mobility of operations using ASAP and ALAP Computer operation probabilities and type distributions Select and schedule operation Update operation probabilities and type distributions Go to net step/operation Difference with list scheduling in selecting operations Select operations with least force O(n 2 ) time compleity due to pairwise force computations EE82V: SoC Design, Lecture R. Gupta G. De Micheli Force Used as priority function Force is related to concurrency Sort operations for least force Mechanical analogy (spring) Force = constant displacement Constant = operationtype distribution Displacement = change in probability EE82V: SoC Design, Lecture G. De Micheli 2 A. Gerstlauer 22

23 EE82V: SystemonChip (SoC) Design Lecture Two Types of Forces Selfforce Sum of forces to feasible schedule steps Selfforce for operation v i in step l Sum over type distribution delta probability Σ m in interval q k (m) (δ lm p i (m)) Higher selfforce indicates higher mobility Predecessor/successorforce Related to the predecessors/successors Fiing an operation timeframe restricts timeframe of predecessors/successors E: Delaying an operation implies delaying its successors Computed by changes in selfforces of neighbors EE82V: SoC Design, Lecture G. De Micheli Eample: Schedule Operation v < n Distribution graphs for multiplier and ALU Operation v can be scheduled in step or step 2 EE82V: SoC Design, Lecture G. De Micheli 2 A. Gerstlauer 2

24 EE82V: SystemonChip (SoC) Design Lecture Eample: Operation v Op v can be scheduled in the first two steps p ( ) =.; p (2) =.; p ( ) = ; p ( ) = Distribution q ( ) = 2.8; q ( 2 ) = 2. Assign v to step Variation in probability. =. for step Variation in probability. =. for step 2 Selfforce =.2 No successor force Total force =.2 EE82V: SoC Design, Lecture G. De Micheli 7 Eample: Operation v Assign v to step 2 variation in probability. =. for step variation in probability. =. for step 2 Selfforce =.2 Successorforce Operation v 7 assigned to step Succ. force is 2. (. ).8 (. ) =.7 Total force = EE82V: SoC Design, Lecture G. De Micheli 8 2 A. Gerstlauer 2

25 EE82V: SystemonChip (SoC) Design Lecture Eample: Operation v Total force in step =.2 Total force in step 2 = Conclusion: Least force is for step 2 Assigning v to step 2 reduces concurrency EE82V: SoC Design, Lecture G. De Micheli 9 FDS for Minimum Resources FDS ( G ( V, E ), λ ) { repeat { Compute/update the timeframes; Compute the operation and type probabilities; Compute the selfforces, p/sforces and total forces; Schedule the op. with least force; } until (all operations are scheduled) return (t); } EE82V: SoC Design, Lecture G. De Micheli 2 A. Gerstlauer 2

26 EE82V: SystemonChip (SoC) Design Lecture Scheduling Generalizations Detailed timing constraints Protocol and interface synthesis Bounds on start time differences Forward & backward edges for min/ma constraints Operation generalizations Unbounded delay operations (e.g. synchronization) Relative scheduling w.r. to anchors and combine Conditional operations Resource generalizations Multicycling and chaining Pipelined resources Model generalizations Hierarchy Pipelining Loops EE82V: SoC Design, Lecture R. Gupta G. De Micheli MultiCycling and Chaining Consider delays of resources not in terms of cycles Use scheduling to chain multiple operations in the same control step Use scheduling to multicycle an operation across more than one control step Useful techniques to eplore effect of cycletime on area/latency tradeoff Algorithms ILP ALAP/ASAP List scheduling EE82V: SoC Design, Lecture G. De Micheli 2 2 A. Gerstlauer 2

27 EE82V: SystemonChip (SoC) Design Lecture Chaining Eample N N (a) (b) Cycletime: EE82V: SoC Design, Lecture G. De Micheli Pipelining Two levels of data pipelining Structural pipelining Pipelined resources Nonpipelined model Functional pipelining Nonpipelined resources Pipelined model Control pipelining Pipelined control logic EE82V: SoC Design, Lecture R. Gupta G. De Micheli 2 A. Gerstlauer 27

28 EE82V: SystemonChip (SoC) Design Lecture Structural Pipelining Nonpipelined model using pipelined resources Resources characterized by Eecution delay Data introduction interval: DII Implications Operations sharing a pipelined resource are serialized (always) Operations do not have data dependency Solution using list scheduling Rela criteria for selection of vertices EE82V: SoC Design, Lecture R. Gupta G. De Micheli Structural Pipelining Eample < < < < multipliers w/ 2 cycle delay and DII = EE82V: SoC Design, Lecture R. Gupta G. De Micheli 2 A. Gerstlauer 28

29 EE82V: SystemonChip (SoC) Design Lecture Functional (Loop) Pipelining Pipelined model, nonpipelined resources Assume nonhierarchical graphs Model characterized by Latency Initiation interval, II Restart source before completing sink Implicit loop Limited by loopcarried dependencies Solutions using ILP or heuristics ILP resource constraints modified to include increased concurrency List or forcedirected methods EE82V: SoC Design, Lecture R. Gupta G. De Micheli 7 Pipelining and Concurrency II determines resource usage Smaller II leads to larger overlaps, higher resource requirements min{a k } = n k, for II= (all n k operations are concurrent) In general, a k nk II Concurrent operations Operations v i and v j are eecuting concurrently at control step l, if rem{ t i II } = rem{ t j II } = l Affects the design of the controller circuitry EE82V: SoC Design, Lecture R. Gupta G. De Micheli 8 2 A. Gerstlauer 29

30 EE82V: SystemonChip (SoC) Design Lecture Loop Scheduling Potential parallelism across loop invocations Single loop eecutions Sequential eecution Loop unrolling (known iteration count) Merge multiple iterations into one to provide scheduling opportunities Loop pipelining (iteration count might be unknown) Start net iteration while current one is still running Depends on dependencies across iterations Functional pipelining Merging of multiple loops Run different loops in parallel (no dependencies) EE82V: SoC Design, Lecture R. Gupta G. De Micheli 9 Loop Scheduling Eample Sequential Unrolled,2,,, 7,8,9 Pipelined Iteration count = N Loop latency = N λ Pipeline loop iterations with II < λ Latency of the pipelined loop N II overhead II Overhead = EE82V: SoC Design, Lecture R. Gupta G. De Micheli 2 A. Gerstlauer

31 EE82V: SystemonChip (SoC) Design Lecture Lecture : Summary Scheduling determines area/latency tradeoff Intractable problem in general Heuristic algorithms ILP formulation (smallcase problems) Several heuristic formulations List scheduling is the fastest and most used Forcedirected scheduling tends to yield good results Several etensions Chaining and multicycling Pipelining EE82V: SoC Design, Lecture G. De Micheli 2 A. Gerstlauer

EE382V-ICS: System-on-a-Chip (SoC) Design

EE382V-ICS: System-on-a-Chip (SoC) Design EE8VICS: SystemonChip (SoC) EE8VICS: SystemonaChip (SoC) Scheduling Source: G. De Micheli, Integrated Systems Center, EPFL Synthesis and Optimization of Digital Circuits, McGraw Hill, 00. Additional sources:

More information

ECE 5775 (Fall 17) High-Level Digital Design Automation. Scheduling: Exact Methods

ECE 5775 (Fall 17) High-Level Digital Design Automation. Scheduling: Exact Methods ECE 5775 (Fall 17) High-Level Digital Design Automation Scheduling: Exact Methods Announcements Sign up for the first student-led discussions today One slot remaining Presenters for the 1st session will

More information

VLSI System Design Part V : High-Level Synthesis(2) Oct Feb.2007

VLSI System Design Part V : High-Level Synthesis(2) Oct Feb.2007 VLSI System Design Part V : High-Level Synthesis(2) Oct.2006 - Feb.2007 Lecturer : Tsuyoshi Isshiki Dept. Communications and Integrated Systems, Tokyo Institute of Technology isshiki@vlsi.ss.titech.ac.jp

More information

NOP * * * * + n NOP NOP TIME 1 TIME 2 TIME 3 * * TIME 4 TIME 5 TIME 6 TIME 7 NOP

NOP * * * * + n NOP NOP TIME 1 TIME 2 TIME 3 * * TIME 4 TIME 5 TIME 6 TIME 7 NOP SCHEDULING II Scheduli uder resource costraits Simplied models: cgiovai De Micheli Staford Uiversity { Hu's alorithm. Heuristic alorithms: { List scheduli. { Force-directed scheduli. Hu's alorithm Assumptios:

More information

Digital Design. Register Transfer Specification And Design

Digital Design. Register Transfer Specification And Design Principles Of Digital Design Chapter 8 Register Transfer Specification And Design Chapter preview Boolean algebra 3 Logic gates and flip-flops 3 Finite-state machine 6 Logic design techniques 4 Sequential

More information

Exam Spring Embedded Systems. Prof. L. Thiele

Exam Spring Embedded Systems. Prof. L. Thiele Exam Spring 20 Embedded Systems Prof. L. Thiele NOTE: The given solution is only a proposal. For correctness, completeness, or understandability no responsibility is taken. Sommer 20 Eingebettete Systeme

More information

VLSI Signal Processing

VLSI Signal Processing VLSI Signal Processing Lecture 1 Pipelining & Retiming ADSP Lecture1 - Pipelining & Retiming (cwliu@twins.ee.nctu.edu.tw) 1-1 Introduction DSP System Real time requirement Data driven synchronized by data

More information

Lecture 2: Divide and conquer and Dynamic programming

Lecture 2: Divide and conquer and Dynamic programming Chapter 2 Lecture 2: Divide and conquer and Dynamic programming 2.1 Divide and Conquer Idea: - divide the problem into subproblems in linear time - solve subproblems recursively - combine the results in

More information

CSC Design and Analysis of Algorithms. LP Shader Electronics Example

CSC Design and Analysis of Algorithms. LP Shader Electronics Example CSC 80- Design and Analysis of Algorithms Lecture (LP) LP Shader Electronics Example The Shader Electronics Company produces two products:.eclipse, a portable touchscreen digital player; it takes hours

More information

A Heuristic for Clock Selection in High-Level Synthesis

A Heuristic for Clock Selection in High-Level Synthesis A Heuristic for Clock Selection in High-Level Synthesis J. Ramanujam Λ Sandeep Deshpande Λ Jinpyo Hong Λ Mahmut Kandemir y Abstract * * * * Clock selection has a significant impact on the performance and

More information

Travelling Salesman Problem

Travelling Salesman Problem Travelling Salesman Problem Fabio Furini November 10th, 2014 Travelling Salesman Problem 1 Outline 1 Traveling Salesman Problem Separation Travelling Salesman Problem 2 (Asymmetric) Traveling Salesman

More information

1 Column Generation and the Cutting Stock Problem

1 Column Generation and the Cutting Stock Problem 1 Column Generation and the Cutting Stock Problem In the linear programming approach to the traveling salesman problem we used the cutting plane approach. The cutting plane approach is appropriate when

More information

Datapath Component Tradeoffs

Datapath Component Tradeoffs Datapath Component Tradeoffs Faster Adders Previously we studied the ripple-carry adder. This design isn t feasible for larger adders due to the ripple delay. ʽ There are several methods that we could

More information

P C max. NP-complete from partition. Example j p j What is the makespan on 2 machines? 3 machines? 4 machines?

P C max. NP-complete from partition. Example j p j What is the makespan on 2 machines? 3 machines? 4 machines? Multiple Machines Model Multiple Available resources people time slots queues networks of computers Now concerned with both allocation to a machine and ordering on that machine. P C max NP-complete from

More information

Logic BIST. Sungho Kang Yonsei University

Logic BIST. Sungho Kang Yonsei University Logic BIST Sungho Kang Yonsei University Outline Introduction Basics Issues Weighted Random Pattern Generation BIST Architectures Deterministic BIST Conclusion 2 Built In Self Test Test/ Normal Input Pattern

More information

Embedded Systems Design: Optimization Challenges. Paul Pop Embedded Systems Lab (ESLAB) Linköping University, Sweden

Embedded Systems Design: Optimization Challenges. Paul Pop Embedded Systems Lab (ESLAB) Linköping University, Sweden of /4 4 Embedded Systems Design: Optimization Challenges Paul Pop Embedded Systems Lab (ESLAB) Linköping University, Sweden Outline! Embedded systems " Example area: automotive electronics " Embedded systems

More information

Duality of LPs and Applications

Duality of LPs and Applications Lecture 6 Duality of LPs and Applications Last lecture we introduced duality of linear programs. We saw how to form duals, and proved both the weak and strong duality theorems. In this lecture we will

More information

Lecture 4.2 Finite Difference Approximation

Lecture 4.2 Finite Difference Approximation Lecture 4. Finite Difference Approimation 1 Discretization As stated in Lecture 1.0, there are three steps in numerically solving the differential equations. They are: 1. Discretization of the domain by

More information

Zebo Peng Embedded Systems Laboratory IDA, Linköping University

Zebo Peng Embedded Systems Laboratory IDA, Linköping University TDTS 01 Lecture 8 Optimization Heuristics for Synthesis Zebo Peng Embedded Systems Laboratory IDA, Linköping University Lecture 8 Optimization problems Heuristic techniques Simulated annealing Genetic

More information

CS 6820 Fall 2014 Lectures, October 3-20, 2014

CS 6820 Fall 2014 Lectures, October 3-20, 2014 Analysis of Algorithms Linear Programming Notes CS 6820 Fall 2014 Lectures, October 3-20, 2014 1 Linear programming The linear programming (LP) problem is the following optimization problem. We are given

More information

CS 781 Lecture 9 March 10, 2011 Topics: Local Search and Optimization Metropolis Algorithm Greedy Optimization Hopfield Networks Max Cut Problem Nash

CS 781 Lecture 9 March 10, 2011 Topics: Local Search and Optimization Metropolis Algorithm Greedy Optimization Hopfield Networks Max Cut Problem Nash CS 781 Lecture 9 March 10, 2011 Topics: Local Search and Optimization Metropolis Algorithm Greedy Optimization Hopfield Networks Max Cut Problem Nash Equilibrium Price of Stability Coping With NP-Hardness

More information

The Multiple Traveling Salesman Problem with Time Windows: Bounds for the Minimum Number of Vehicles

The Multiple Traveling Salesman Problem with Time Windows: Bounds for the Minimum Number of Vehicles The Multiple Traveling Salesman Problem with Time Windows: Bounds for the Minimum Number of Vehicles Snežana Mitrović-Minić Ramesh Krishnamurti School of Computing Science, Simon Fraser University, Burnaby,

More information

- Well-characterized problems, min-max relations, approximate certificates. - LP problems in the standard form, primal and dual linear programs

- Well-characterized problems, min-max relations, approximate certificates. - LP problems in the standard form, primal and dual linear programs LP-Duality ( Approximation Algorithms by V. Vazirani, Chapter 12) - Well-characterized problems, min-max relations, approximate certificates - LP problems in the standard form, primal and dual linear programs

More information

Integer Linear Programming

Integer Linear Programming Integer Linear Programming Solution : cutting planes and Branch and Bound Hugues Talbot Laboratoire CVN April 13, 2018 IP Resolution Gomory s cutting planes Solution branch-and-bound General method Resolution

More information

Timing Driven Power Gating in High-Level Synthesis

Timing Driven Power Gating in High-Level Synthesis Timing Driven Power Gating in High-Level Synthesis Shih-Hsu Huang and Chun-Hua Cheng Department of Electronic Engineering Chung Yuan Christian University, Taiwan Outline Introduction Motivation Our Approach

More information

Approximation Basics

Approximation Basics Approximation Basics, Concepts, and Examples Xiaofeng Gao Department of Computer Science and Engineering Shanghai Jiao Tong University, P.R.China Fall 2012 Special thanks is given to Dr. Guoqiang Li for

More information

CS256 Applied Theory of Computation

CS256 Applied Theory of Computation CS256 Applied Theory of Computation Compleity Classes III John E Savage Overview Last lecture on time-bounded compleity classes Today we eamine space-bounded compleity classes We prove Savitch s Theorem,

More information

12. LOCAL SEARCH. gradient descent Metropolis algorithm Hopfield neural networks maximum cut Nash equilibria

12. LOCAL SEARCH. gradient descent Metropolis algorithm Hopfield neural networks maximum cut Nash equilibria 12. LOCAL SEARCH gradient descent Metropolis algorithm Hopfield neural networks maximum cut Nash equilibria Lecture slides by Kevin Wayne Copyright 2005 Pearson-Addison Wesley h ttp://www.cs.princeton.edu/~wayne/kleinberg-tardos

More information

CS/EE 181a 2008/09 Lecture 4

CS/EE 181a 2008/09 Lecture 4 CS/EE 181a 28/9 Lecture 4 General topic of today s lecture: Logic Optimization Karnaugh maps. Quine-McCluskey tabulation method (not in detail). Non series-parallel networks (some care is required). Reference

More information

Chapter 11. Approximation Algorithms. Slides by Kevin Wayne Pearson-Addison Wesley. All rights reserved.

Chapter 11. Approximation Algorithms. Slides by Kevin Wayne Pearson-Addison Wesley. All rights reserved. Chapter 11 Approximation Algorithms Slides by Kevin Wayne. Copyright @ 2005 Pearson-Addison Wesley. All rights reserved. 1 Approximation Algorithms Q. Suppose I need to solve an NP-hard problem. What should

More information

SAMPLE STUDY MATERIAL. GATE, IES & PSUs Civil Engineering

SAMPLE STUDY MATERIAL. GATE, IES & PSUs Civil Engineering SAMPLE STUDY MATERIAL Postal Correspondence Course GATE, IES & PSUs Civil Engineering CPM & CONSTRUCTION EQUIPMENT C O N T E N T 1. CPM AND PERT... 03-16 2. CRASHING OF NETWORK... 17-20 3. ENGINEERING

More information

. Introduction to CPM / PERT Techniques. Applications of CPM / PERT. Basic Steps in PERT / CPM. Frame work of PERT/CPM. Network Diagram Representation. Rules for Drawing Network Diagrams. Common Errors

More information

Queue Length Stability in Trees under Slowly Convergent Traffic using Sequential Maximal Scheduling

Queue Length Stability in Trees under Slowly Convergent Traffic using Sequential Maximal Scheduling 1 Queue Length Stability in Trees under Slowly Convergent Traffic using Sequential Maximal Scheduling Saswati Sarkar and Koushik Kar Abstract In this paper, we consider queue-length stability in wireless

More information

Water Resources Systems: Modeling Techniques and Analysis

Water Resources Systems: Modeling Techniques and Analysis INDIAN INSTITUTE OF SCIENCE Water Resources Systems: Modeling Techniques and Analysis Lecture - 9 Course Instructor : Prof. P. P. MUJUMDAR Department of Civil Engg., IISc. Summary of the previous lecture

More information

K-center Hardness and Max-Coverage (Greedy)

K-center Hardness and Max-Coverage (Greedy) IOE 691: Approximation Algorithms Date: 01/11/2017 Lecture Notes: -center Hardness and Max-Coverage (Greedy) Instructor: Viswanath Nagarajan Scribe: Sentao Miao 1 Overview In this lecture, we will talk

More information

where X is the feasible region, i.e., the set of the feasible solutions.

where X is the feasible region, i.e., the set of the feasible solutions. 3.5 Branch and Bound Consider a generic Discrete Optimization problem (P) z = max{c(x) : x X }, where X is the feasible region, i.e., the set of the feasible solutions. Branch and Bound is a general semi-enumerative

More information

Linear Discriminant Functions

Linear Discriminant Functions Linear Discriminant Functions Linear discriminant functions and decision surfaces Definition It is a function that is a linear combination of the components of g() = t + 0 () here is the eight vector and

More information

Non-Work-Conserving Non-Preemptive Scheduling: Motivations, Challenges, and Potential Solutions

Non-Work-Conserving Non-Preemptive Scheduling: Motivations, Challenges, and Potential Solutions Non-Work-Conserving Non-Preemptive Scheduling: Motivations, Challenges, and Potential Solutions Mitra Nasri Chair of Real-time Systems, Technische Universität Kaiserslautern, Germany nasri@eit.uni-kl.de

More information

6.034f Neural Net Notes October 28, 2010

6.034f Neural Net Notes October 28, 2010 6.034f Neural Net Notes October 28, 2010 These notes are a supplement to material presented in lecture. I lay out the mathematics more prettily and etend the analysis to handle multiple-neurons per layer.

More information

STATIC LECTURE 4: CONSTRAINED OPTIMIZATION II - KUHN TUCKER THEORY

STATIC LECTURE 4: CONSTRAINED OPTIMIZATION II - KUHN TUCKER THEORY STATIC LECTURE 4: CONSTRAINED OPTIMIZATION II - KUHN TUCKER THEORY UNIVERSITY OF MARYLAND: ECON 600 1. Some Eamples 1 A general problem that arises countless times in economics takes the form: (Verbally):

More information

University of California Berkeley CS170: Efficient Algorithms and Intractable Problems November 19, 2001 Professor Luca Trevisan. Midterm 2 Solutions

University of California Berkeley CS170: Efficient Algorithms and Intractable Problems November 19, 2001 Professor Luca Trevisan. Midterm 2 Solutions University of California Berkeley Handout MS2 CS170: Efficient Algorithms and Intractable Problems November 19, 2001 Professor Luca Trevisan Midterm 2 Solutions Problem 1. Provide the following information:

More information

Loop Scheduling and Software Pipelining \course\cpeg421-08s\topic-7.ppt 1

Loop Scheduling and Software Pipelining \course\cpeg421-08s\topic-7.ppt 1 Loop Scheduling and Software Pipelining 2008-04-24 \course\cpeg421-08s\topic-7.ppt 1 Reading List Slides: Topic 7 and 7a Other papers as assigned in class or homework: 2008-04-24 \course\cpeg421-08s\topic-7.ppt

More information

Lessons from MIP Search. John Hooker Carnegie Mellon University November 2009

Lessons from MIP Search. John Hooker Carnegie Mellon University November 2009 Lessons from MIP Search John Hooker Carnegie Mellon University November 2009 Outline MIP search The main ideas Duality and nogoods From MIP to AI (and back) Binary decision diagrams From MIP to constraint

More information

Introduction to Operations Research Prof. G. Srinivasan Department of Management Studies Indian Institute of Technology, Madras

Introduction to Operations Research Prof. G. Srinivasan Department of Management Studies Indian Institute of Technology, Madras Introduction to Operations Research Prof. G. Srinivasan Department of Management Studies Indian Institute of Technology, Madras Module - 03 Simplex Algorithm Lecture 15 Infeasibility In this class, we

More information

Algorithm Design. Scheduling Algorithms. Part 2. Parallel machines. Open-shop Scheduling. Job-shop Scheduling.

Algorithm Design. Scheduling Algorithms. Part 2. Parallel machines. Open-shop Scheduling. Job-shop Scheduling. Algorithm Design Scheduling Algorithms Part 2 Parallel machines. Open-shop Scheduling. Job-shop Scheduling. 1 Parallel Machines n jobs need to be scheduled on m machines, M 1,M 2,,M m. Each machine can

More information

Computer Aided Design of Thermal Systems (ME648)

Computer Aided Design of Thermal Systems (ME648) Computer Aided Design of Thermal Systems (ME648) PG/Open Elective Credits: 3-0-0-9 Updated Syallabus: Introduction. Basic Considerations in Design. Modelling of Thermal Systems. Numerical Modelling and

More information

Integer Linear Programs

Integer Linear Programs Lecture 2: Review, Linear Programming Relaxations Today we will talk about expressing combinatorial problems as mathematical programs, specifically Integer Linear Programs (ILPs). We then see what happens

More information

DSP Design Lecture 7. Unfolding cont. & Folding. Dr. Fredrik Edman.

DSP Design Lecture 7. Unfolding cont. & Folding. Dr. Fredrik Edman. SP esign Lecture 7 Unfolding cont. & Folding r. Fredrik Edman fredrik.edman@eit.lth.se Unfolding Unfolding creates a program with more than one iteration, J=unfolding factor Unfolding is a structured way

More information

Mathematics for Decision Making: An Introduction. Lecture 8

Mathematics for Decision Making: An Introduction. Lecture 8 Mathematics for Decision Making: An Introduction Lecture 8 Matthias Köppe UC Davis, Mathematics January 29, 2009 8 1 Shortest Paths and Feasible Potentials Feasible Potentials Suppose for all v V, there

More information

iretilp : An efficient incremental algorithm for min-period retiming under general delay model

iretilp : An efficient incremental algorithm for min-period retiming under general delay model iretilp : An efficient incremental algorithm for min-period retiming under general delay model Debasish Das, Jia Wang and Hai Zhou EECS, Northwestern University, Evanston, IL 60201 Place and Route Group,

More information

Lecture 5. x 1,x 2,x 3 0 (1)

Lecture 5. x 1,x 2,x 3 0 (1) Computational Intractability Revised 2011/6/6 Lecture 5 Professor: David Avis Scribe:Ma Jiangbo, Atsuki Nagao 1 Duality The purpose of this lecture is to introduce duality, which is an important concept

More information

Switching Circuits & Logic Design

Switching Circuits & Logic Design Switching ircuits & Logic esign Jieong Roland Jiang 江介宏 epartment of lectrical ngineering National Taiwan University Fall 22 6 Sequential ircuit esign homsky ierarchy http://www.cs.lmu.edu/~ray/notes/languagetheory/

More information

Linear Programming Duality

Linear Programming Duality Summer 2011 Optimization I Lecture 8 1 Duality recap Linear Programming Duality We motivated the dual of a linear program by thinking about the best possible lower bound on the optimal value we can achieve

More information

EECS 571 Principles of Real-Time Embedded Systems. Lecture Note #7: More on Uniprocessor Scheduling

EECS 571 Principles of Real-Time Embedded Systems. Lecture Note #7: More on Uniprocessor Scheduling EECS 571 Principles of Real-Time Embedded Systems Lecture Note #7: More on Uniprocessor Scheduling Kang G. Shin EECS Department University of Michigan Precedence and Exclusion Constraints Thus far, we

More information

Numerical Analysis & Computer Programming

Numerical Analysis & Computer Programming ++++++++++ Numerical Analysis & Computer Programming Previous year Questions from 07 to 99 Ramanasri Institute W E B S I T E : M A T H E M A T I C S O P T I O N A L. C O M C O N T A C T : 8 7 5 0 7 0 6

More information

Lecture 7: Weak Duality

Lecture 7: Weak Duality EE 227A: Conve Optimization and Applications February 7, 2012 Lecture 7: Weak Duality Lecturer: Laurent El Ghaoui 7.1 Lagrange Dual problem 7.1.1 Primal problem In this section, we consider a possibly

More information

Parallel Performance Evaluation through Critical Path Analysis

Parallel Performance Evaluation through Critical Path Analysis Parallel Performance Evaluation through Critical Path Analysis Benno J. Overeinder and Peter M. A. Sloot University of Amsterdam, Parallel Scientific Computing & Simulation Group Kruislaan 403, NL-1098

More information

APTAS for Bin Packing

APTAS for Bin Packing APTAS for Bin Packing Bin Packing has an asymptotic PTAS (APTAS) [de la Vega and Leuker, 1980] For every fixed ε > 0 algorithm outputs a solution of size (1+ε)OPT + 1 in time polynomial in n APTAS for

More information

ICS 252 Introduction to Computer Design

ICS 252 Introduction to Computer Design ICS 252 fall 2006 Eli Bozorgzadeh Computer Science Department-UCI References and Copyright Textbooks referred [Mic94] G. De Micheli Synthesis and Optimization of Digital Circuits McGraw-Hill, 1994. [CLR90]

More information

1 Primals and Duals: Zero Sum Games

1 Primals and Duals: Zero Sum Games CS 124 Section #11 Zero Sum Games; NP Completeness 4/15/17 1 Primals and Duals: Zero Sum Games We can represent various situations of conflict in life in terms of matrix games. For example, the game shown

More information

Distributed Optimization. Song Chong EE, KAIST

Distributed Optimization. Song Chong EE, KAIST Distributed Optimization Song Chong EE, KAIST songchong@kaist.edu Dynamic Programming for Path Planning A path-planning problem consists of a weighted directed graph with a set of n nodes N, directed links

More information

10/12/2016. An FSM with No Inputs Moves from State to State. ECE 120: Introduction to Computing. Eventually, the States Form a Loop

10/12/2016. An FSM with No Inputs Moves from State to State. ECE 120: Introduction to Computing. Eventually, the States Form a Loop University of Illinois at Urbana-Champaign Dept. of Electrical and Computer Engineering An FSM with No Inputs Moves from State to State What happens if an FSM has no inputs? ECE 120: Introduction to Computing

More information

3 The Simplex Method. 3.1 Basic Solutions

3 The Simplex Method. 3.1 Basic Solutions 3 The Simplex Method 3.1 Basic Solutions In the LP of Example 2.3, the optimal solution happened to lie at an extreme point of the feasible set. This was not a coincidence. Consider an LP in general form,

More information

Artificial Neural Networks 2

Artificial Neural Networks 2 CSC2515 Machine Learning Sam Roweis Artificial Neural s 2 We saw neural nets for classification. Same idea for regression. ANNs are just adaptive basis regression machines of the form: y k = j w kj σ(b

More information

EXACT ALGORITHMS FOR THE ATSP

EXACT ALGORITHMS FOR THE ATSP EXACT ALGORITHMS FOR THE ATSP Branch-and-Bound Algorithms: Little-Murty-Sweeney-Karel (Operations Research, ); Bellmore-Malone (Operations Research, ); Garfinkel (Operations Research, ); Smith-Srinivasan-Thompson

More information

1 Basic Definitions. 2 Proof By Contradiction. 3 Exchange Argument

1 Basic Definitions. 2 Proof By Contradiction. 3 Exchange Argument 1 Basic Definitions A Problem is a relation from input to acceptable output. For example, INPUT: A list of integers x 1,..., x n OUTPUT: One of the three smallest numbers in the list An algorithm A solves

More information

The simplex algorithm

The simplex algorithm The simplex algorithm The simplex algorithm is the classical method for solving linear programs. Its running time is not polynomial in the worst case. It does yield insight into linear programs, however,

More information

Binary Multipliers. Reading: Study Chapter 3. The key trick of multiplication is memorizing a digit-to-digit table Everything else was just adding

Binary Multipliers. Reading: Study Chapter 3. The key trick of multiplication is memorizing a digit-to-digit table Everything else was just adding Binary Multipliers The key trick of multiplication is memorizing a digit-to-digit table Everything else was just adding 2 3 4 5 6 7 8 9 2 3 4 5 6 7 8 9 2 2 4 6 8 2 4 6 8 3 3 6 9 2 5 8 2 24 27 4 4 8 2 6

More information

Semi-Markov/Graph Cuts

Semi-Markov/Graph Cuts Semi-Markov/Graph Cuts Alireza Shafaei University of British Columbia August, 2015 1 / 30 A Quick Review For a general chain-structured UGM we have: n n p(x 1, x 2,..., x n ) φ i (x i ) φ i,i 1 (x i, x

More information

Consistency as Projection

Consistency as Projection Consistency as Projection John Hooker Carnegie Mellon University INFORMS 2015, Philadelphia USA Consistency as Projection Reconceive consistency in constraint programming as a form of projection. For eample,

More information

Lecture 13. Real-Time Scheduling. Daniel Kästner AbsInt GmbH 2013

Lecture 13. Real-Time Scheduling. Daniel Kästner AbsInt GmbH 2013 Lecture 3 Real-Time Scheduling Daniel Kästner AbsInt GmbH 203 Model-based Software Development 2 SCADE Suite Application Model in SCADE (data flow + SSM) System Model (tasks, interrupts, buses, ) SymTA/S

More information

ECE 307 Techniques for Engineering Decisions

ECE 307 Techniques for Engineering Decisions ECE 7 Techniques for Engineering Decisions Introduction to the Simple Algorithm George Gross Department of Electrical and Computer Engineering University of Illinois at Urbana-Champaign ECE 7 5 9 George

More information

Design of a Universal Logic Block for Fault-Tolerant Realization of any Logic Operation in Trapped-Ion Quantum Circuits

Design of a Universal Logic Block for Fault-Tolerant Realization of any Logic Operation in Trapped-Ion Quantum Circuits Design of a Universal Logic lock for Fault-Tolerant Realization of any Logic Operation in Trapped-Ion Quantum Circuits H. Goudarzi M. J. Dousti A. Shafaei ejestan M. Pedram Abstract This paper presents

More information

Lecture 15 (Oct 6): LP Duality

Lecture 15 (Oct 6): LP Duality CMPUT 675: Approximation Algorithms Fall 2014 Lecturer: Zachary Friggstad Lecture 15 (Oct 6): LP Duality Scribe: Zachary Friggstad 15.1 Introduction by Example Given a linear program and a feasible solution

More information

NP-Completeness I. Lecture Overview Introduction: Reduction and Expressiveness

NP-Completeness I. Lecture Overview Introduction: Reduction and Expressiveness Lecture 19 NP-Completeness I 19.1 Overview In the past few lectures we have looked at increasingly more expressive problems that we were able to solve using efficient algorithms. In this lecture we introduce

More information

STA 4273H: Statistical Machine Learning

STA 4273H: Statistical Machine Learning STA 4273H: Statistical Machine Learning Russ Salakhutdinov Department of Statistics! rsalakhu@utstat.toronto.edu! http://www.utstat.utoronto.ca/~rsalakhu/ Sidney Smith Hall, Room 6002 Lecture 11 Project

More information

Lesson #33 Solving Incomplete Quadratics

Lesson #33 Solving Incomplete Quadratics Lesson # Solving Incomplete Quadratics A.A.4 Know and apply the technique of completing the square ~ 1 ~ We can also set up any quadratic to solve it in this way by completing the square, the technique

More information

Advanced topic: Space complexity

Advanced topic: Space complexity Advanced topic: Space complexity CSCI 3130 Formal Languages and Automata Theory Siu On CHAN Chinese University of Hong Kong Fall 2016 1/28 Review: time complexity We have looked at how long it takes to

More information

Lecture 5: Logistic Regression. Neural Networks

Lecture 5: Logistic Regression. Neural Networks Lecture 5: Logistic Regression. Neural Networks Logistic regression Comparison with generative models Feed-forward neural networks Backpropagation Tricks for training neural networks COMP-652, Lecture

More information

Fundamentals of Operations Research. Prof. G. Srinivasan. Indian Institute of Technology Madras. Lecture No. # 15

Fundamentals of Operations Research. Prof. G. Srinivasan. Indian Institute of Technology Madras. Lecture No. # 15 Fundamentals of Operations Research Prof. G. Srinivasan Indian Institute of Technology Madras Lecture No. # 15 Transportation Problem - Other Issues Assignment Problem - Introduction In the last lecture

More information

) (d o f. For the previous layer in a neural network (just the rightmost layer if a single neuron), the required update equation is: 2.

) (d o f. For the previous layer in a neural network (just the rightmost layer if a single neuron), the required update equation is: 2. 1 Massachusetts Institute of Technology Department of Electrical Engineering and Computer Science 6.034 Artificial Intelligence, Fall 2011 Recitation 8, November 3 Corrected Version & (most) solutions

More information

Fall 2017 Qualifier Exam: OPTIMIZATION. September 18, 2017

Fall 2017 Qualifier Exam: OPTIMIZATION. September 18, 2017 Fall 2017 Qualifier Exam: OPTIMIZATION September 18, 2017 GENERAL INSTRUCTIONS: 1 Answer each question in a separate book 2 Indicate on the cover of each book the area of the exam, your code number, and

More information

Embedded Systems 15. REVIEW: Aperiodic scheduling. C i J i 0 a i s i f i d i

Embedded Systems 15. REVIEW: Aperiodic scheduling. C i J i 0 a i s i f i d i Embedded Systems 15-1 - REVIEW: Aperiodic scheduling C i J i 0 a i s i f i d i Given: A set of non-periodic tasks {J 1,, J n } with arrival times a i, deadlines d i, computation times C i precedence constraints

More information

Linear Programming. Scheduling problems

Linear Programming. Scheduling problems Linear Programming Scheduling problems Linear programming (LP) ( )., 1, for 0 min 1 1 1 1 1 11 1 1 n i x b x a x a b x a x a x c x c x z i m n mn m n n n n! = + + + + + + = Extreme points x ={x 1,,x n

More information

Cost/Performance Tradeoffs:

Cost/Performance Tradeoffs: Cost/Performance Tradeoffs: a case study Digital Systems Architecture I. L10 - Multipliers 1 Binary Multiplication x a b n bits n bits EASY PROBLEM: design combinational circuit to multiply tiny (1-, 2-,

More information

BBM402-Lecture 20: LP Duality

BBM402-Lecture 20: LP Duality BBM402-Lecture 20: LP Duality Lecturer: Lale Özkahya Resources for the presentation: https://courses.engr.illinois.edu/cs473/fa2016/lectures.html An easy LP? which is compact form for max cx subject to

More information

Network Flows. CTU FEE Department of control engineering. March 28, 2017

Network Flows. CTU FEE Department of control engineering. March 28, 2017 Network Flows Zdeněk Hanzálek, Přemysl Šůcha hanzalek@fel.cvut.cz CTU FEE Department of control engineering March 28, 2017 Z. Hanzálek (CTU FEE) Network Flows March 28, 2017 1 / 44 Table of contents 1

More information

EE/ACM Applications of Convex Optimization in Signal Processing and Communications Lecture 18

EE/ACM Applications of Convex Optimization in Signal Processing and Communications Lecture 18 EE/ACM 150 - Applications of Convex Optimization in Signal Processing and Communications Lecture 18 Andre Tkacenko Signal Processing Research Group Jet Propulsion Laboratory May 31, 2012 Andre Tkacenko

More information

Design of Sequential Circuits

Design of Sequential Circuits Design of Sequential Circuits Seven Steps: Construct a state diagram (showing contents of flip flop and inputs with next state) Assign letter variables to each flip flop and each input and output variable

More information

Lecture 4: NP and computational intractability

Lecture 4: NP and computational intractability Chapter 4 Lecture 4: NP and computational intractability Listen to: Find the longest path, Daniel Barret What do we do today: polynomial time reduction NP, co-np and NP complete problems some examples

More information

Unconstrained Multivariate Optimization

Unconstrained Multivariate Optimization Unconstrained Multivariate Optimization Multivariate optimization means optimization of a scalar function of a several variables: and has the general form: y = () min ( ) where () is a nonlinear scalar-valued

More information

Energy Delay Optimization

Energy Delay Optimization EE M216A.:. Fall 21 Lecture 8 Energy Delay Optimization Prof. Dejan Marković ee216a@gmail.com Some Common Questions Is sizing better than V DD for energy reduction? What are the optimal values of gate

More information

Lecture 4: Linear Algebra 1

Lecture 4: Linear Algebra 1 Lecture 4: Linear Algebra 1 Sourendu Gupta TIFR Graduate School Computational Physics 1 February 12, 2010 c : Sourendu Gupta (TIFR) Lecture 4: Linear Algebra 1 CP 1 1 / 26 Outline 1 Linear problems Motivation

More information

The Kuhn-Tucker and Envelope Theorems

The Kuhn-Tucker and Envelope Theorems The Kuhn-Tucker and Envelope Theorems Peter Ireland EC720.01 - Math for Economists Boston College, Department of Economics Fall 2010 The Kuhn-Tucker and envelope theorems can be used to characterize the

More information

A scheme developed by Du Pont to figure out

A scheme developed by Du Pont to figure out CPM Project Management scheme. A scheme developed by Du Pont to figure out Length of a normal project schedule given task durations and their precedence in a network type layout (or Gantt chart) Two examples

More information

DSP Design Lecture 5. Dr. Fredrik Edman.

DSP Design Lecture 5. Dr. Fredrik Edman. SP esign SP esign Lecture 5 Retiming r. Fredrik Edman fredrik.edman@eit.lth.se Fredrik Edman, ept. of Electrical and Information Technology, Lund University, Sweden-www.eit.lth.se SP esign Repetition Critical

More information

The Algorithm (DSC): Mark all nodes as unscheduled WHILE there are unscheduled nodes DO In descending order of priority, sort list of free nodes In descending order of priority, sort list of partial free

More information

Midterm Exam 2 Solutions

Midterm Exam 2 Solutions Algorithm Design and Analysis November 12, 2010 Pennsylvania State University CSE 565, Fall 2010 Professor Adam Smith Exam 2 Solutions Problem 1 (Miscellaneous). Midterm Exam 2 Solutions (a) Your friend

More information

3.4 Relaxations and bounds

3.4 Relaxations and bounds 3.4 Relaxations and bounds Consider a generic Discrete Optimization problem z = min{c(x) : x X} with an optimal solution x X. In general, the algorithms generate not only a decreasing sequence of upper

More information

Lecture #21. c T x Ax b. maximize subject to

Lecture #21. c T x Ax b. maximize subject to COMPSCI 330: Design and Analysis of Algorithms 11/11/2014 Lecture #21 Lecturer: Debmalya Panigrahi Scribe: Samuel Haney 1 Overview In this lecture, we discuss linear programming. We first show that the

More information