Survey Design. The problem One company has the certain numbers of products to sell to the customers. Each customer will receive questions about the product.

Slides:



Advertisements
Similar presentations
1 Scheduling Crossbar Switches Who do we chose to traverse the switch in the next time slot? N N 11.
Advertisements

CSE 421 Algorithms Richard Anderson Lecture 23 Network Flow Applications.
Network Optimization Models: Maximum Flow Problems
CSCI 256 Data Structures and Algorithm Analysis Lecture 18 Some slides by Kevin Wayne copyright 2005, Pearson Addison Wesley all rights reserved, and some.
1 Maximum Flow w s v u t z 3/33/3 1/91/9 1/11/1 3/33/3 4/74/7 4/64/6 3/53/5 1/11/1 3/53/5 2/22/2 
Nick McKeown Spring 2012 Maximum Matching Algorithms EE384x Packet Switch Architectures.
Modelling with Max Flow 1. 2 The Max Flow Problem.
CSE 421 Algorithms Richard Anderson Lecture 22 Network Flow.
CS138A Maximum Bipartite Matching Peter Schröder.
Maximum Flows Lecture 4: Jan 19. Network transmission Given a directed graph G A source node s A sink node t Goal: To send as much information from s.
A network is shown, with a flow f. v u 6,2 2,2 4,1 5,3 2,1 3,2 5,1 4,1 3,3 Is f a maximum flow? (a) Yes (b) No (c) I have absolutely no idea a b c d.
Maximum Flow Maximum Flow Problem The Ford-Fulkerson method
4.5.1 – Solving Absolute Value Inequalities. We’ve now addressed how to solve absolute value equations We can extend absolute value to inequalities Remember,
CSE 421 Algorithms Richard Anderson Lecture 24 Network Flow Applications.
Lecture 16 Maximum Matching. Incremental Method Transform from a feasible solution to another feasible solution to increase (or decrease) the value of.
CS223 Advanced Data Structures and Algorithms 1 Maximum Flow Neil Tang 3/30/2010.
CSCI-256 Data Structures & Algorithm Analysis Lecture Note: Some slides by Kevin Wayne. Copyright © 2005 Pearson-Addison Wesley. All rights reserved. 25.
CSCI-256 Data Structures & Algorithm Analysis Lecture Note: Some slides by Kevin Wayne. Copyright © 2005 Pearson-Addison Wesley. All rights reserved. 23.
1 Network Flow CSC401 – Analysis of Algorithms Chapter 8 Network Flow Objectives: Flow networks –Flow –Cut Maximum flow –Augmenting path –Maximum flow.
Maximum Flow Chapter 26.
Cycle Canceling Algorithm
The Maximum Network Flow Problem
Maximum Flow c v 3/3 4/6 1/1 4/7 t s 3/3 w 1/9 3/5 1/1 3/5 u z 2/2
Max-flow, Min-cut Network flow.
Lecture 21 Primal-Dual in Algorithms
Algorithms and Networks
Richard Anderson Lecture 23 Network Flow
Maximum Flow 9/13/2018 6:12 PM Presentation for use with the textbook, Algorithm Design and Applications, by M. T. Goodrich and R. Tamassia, Wiley, 2015.
Lecture 22 Network Flow, Part 2
CSCI 3160 Design and Analysis of Algorithms Tutorial 8
CSE 5311-Class Project Bipartite Matching using Network Flow
Chapter 7 Network Flow Slides by Kevin Wayne. Copyright © 2005 Pearson-Addison Wesley. All rights reserved.
The Taxi Scheduling Problem
Max-flow, Min-cut Network flow.
Lecture 16 Maximum Matching
Network Flow 2016/04/12.
Instructor: Shengyu Zhang
Edmonds-Karp Algorithm
Maximum Flow c v 3/3 4/6 1/1 4/7 t s 3/3 w 1/9 3/5 1/1 3/5 u z 2/2
7. Ford-Fulkerson Demo.
7. Ford-Fulkerson Demo.
Lecture 19-Problem Solving 4 Incremental Method
Vertex Covers, Matchings, and Independent Sets
Richard Anderson Lecture 21 Network Flow
Introduction to Minimum Cost Flows
Problem Solving 4.
Richard Anderson Lecture 25 Network Flow Applications
Flow Networks and Bipartite Matching
Maximum Flow c v 3/3 4/6 1/1 4/7 t s 3/3 w 1/9 3/5 1/1 3/5 u z 2/2
Scheduling Crossbar Switches
Lecture 21 Network Flow, Part 1
7. Ford-Fulkerson Demo.
7. Ford-Fulkerson Algorithm with multiple optimal solutions
MAXIMUM flow by Eric Wengert.
Introduction to Maximum Flows
Maximum Flow Neil Tang 4/8/2008
7. Ford-Fulkerson Demo.
7. Ford-Fulkerson Demo.
7. Ford-Fulkerson Demo.
7. Ford-Fulkerson Demo.
Lecture 22 Network Flow, Part 2
Introduction to Maximum Flows
Maximum Bipartite Matching
7. Ford-Fulkerson Demo.
Richard Anderson Lecture 22 Network Flow
7. Ford-Fulkerson Demo.
Advanced Graph Homer Lee 2013/10/31.
Maximum Flow Problems in 2005.
7. Ford-Fulkerson Demo 02/25/19 Copyright 2000, Kevin Wayne.
Vertex Covers and Matchings
Presentation transcript:

Survey Design

The problem One company has the certain numbers of products to sell to the customers. Each customer will receive questions about the product he or she has purchased, the number of the questions for each customers are between Ci and Ci’ For each product j, there must be the between Pj and P’j customers asked about each product j.

Question needed to be solved The company would like to collect maximum number of the questionnaires from the customers about the products.

Bipartite Matching To solve this problem, we need to use Bipartite matching with the maximum flow to solve the problem (The maximum-flow problem means given a flow network, find the a flow of maximum possible value). (finding the flows of maximum possible value satisfy this problem)

Left node means the customer, right node means the product We extend to the corresponding Flow network.

Ci,Ci’ The number or products asking to customers Pj, P’j The number of the customers asked about each product customers Products 0,1 0 means customer won’t receive the question from this product he bought 1 means customer will receive the question from this product he bought

The capacity is 0 or 1 I use the ford- Fulkerson algorithm (minus the minimum flow 1)and see if e1 is 0 and is 0 If e1 is 0, we choose the next edge from S.. 0 or 1 E1 minus 1 E2 minus 1