Table Lookup Illustrated with Product Stress Testing

Slides:



Advertisements
Similar presentations
Fathom Overview Workshop on using Fathom in School Improvement Planning (SIP)
Advertisements

E ngineering College of San Jose State University Engr.10 1 JKA & KY.
Wyndor Example; Enter data Organize the data for the model on the spreadsheet. Type in the coefficients of the constraints and the objective function.
MS Excel Formulas & Functions. What are formulas & functions?  Formulas are instructions that tell Excel how to perform calculations.  Formulas must.
Objectives © Paradigm Publishing, Inc. 1 Objectives.
Using Microsoft ® Excel Formulas and Functions Start Microsoft ® Excel. Type data into cells as shown.
Introduction to Powerschool and Excel Jared Schatz Staff Accountant (509)
Introduction to Microsoft Excel 2010 Chapter Extension 3.
Pre-defined System Functions Simple IF & VLOOKUP.
1 CS110: Lecture 2 Spreadsheets Prepared by Fred Annexstein University of Cincinnati CC Some rights reserved Today’s Topics Basics of Excel Spreadsheets.
FIRST COURSE Excel Lecture. XP 2 Introducing Excel Microsoft Office Excel 2007 (or Excel) is a computer program used to enter, analyze, and present quantitative.
Microsoft Excel Tutorial. Spreadsheet Basics! The Microsoft Excel Window  When you open Microsoft Excel, this screen will appear. Then, if necessary,
Using Excel To help with data. Excel is a spreadsheet program that can interface with Word, or PowerPoint A spreadsheet program has cells (little blocks)
Using a Spreadsheet Chapter 5.
 Introduction to MS-Excel Introduction to MS-Excel  Entering data in EXCEL Entering data in EXCEL  Formulas & Functions in EXCEL Formulas & Functions.
Spreadsheet A spreadsheet is the computer equivalent of a paper ledger sheet. It consists of a grid made from columns and rows. It is an environment that.
U3A Computing Beginners Class Leader – Brian Moore Week 9 of 10 weeks. Mondays 4:15 to 5:45 pm **** Last Class on 2/12/2013***
Transportation and Assignment Problems
Data Analysis Activity Data Analysis Enter data with 100% accuracy Format Cells.
PowerPoint How to use the Alta template Marketing - September 2013.
Microsoft Word Tutorial By Diana Rengifo Sean Choi Robert Olson.
Excel Screen Slide 1 Column Row Cell Formula bar Column heading Row heading Worksheet tab.
1 Basic Computing Skills Dr Wenwu Wang Centre for Vision Speech and Signal Processing Department of Electronic Engineering
Excel 2007 Part (3) Dr. Susan Al Naqshbandi
1 Insert Tab. 2 Then choose a cover page you want and you can easily edit it.
Microsoft Excel® can be a very powerful tool for studying mathematics. This presentation will show you how to 1.Input values 2.Create a function that uses.
 Columns  Rows  Cells  Ranges  Cell addresses  Column headers  Row headers  Formulas  Spreadsheet.
How to display data in PowerPoint ADVANCED/COMMUNITY/6.4.
1 Lesson 18 Getting Started with Excel Essentials Computer Literacy BASICS: A Comprehensive Guide to IC 3, 4 th Edition Morrison / Wells.
Designed by Victor Help you improve MATRICES Let Maths take you Further… Know how to write a Matrix, Know what is Order of Matrices,
How to graph your stock project performance vs. the 3 major indexes.
MS-EXCEL PART 3. Use data validation in Excel to make sure that users enter certain values into a cell. Data Validation Example In this example, we restrict.
Solving Linear Optimization Problems Using the Solver Add-in.
This lesson teaches you how to enter, edit, and manipulate cells and their data,—which are the building blocks of spreadsheets. Cells and Cell Data In.
Exploring Office Grauer and Barber 1 Committed to Shaping the Next Generation of IT Experts. Chapter 1 – Introduction to Excel: What is a Spreadsheet?
Chapter 2 Using Spreadsheets.
Excel for Teachers Presented by Ruthanne Munger
Formulas and Functions
International Computer Driving Licence Syllabus version 5.0
We know about inserting numbers in Excel and how to sum and average numbers. Insert these numbers and in Cell A9, find the average of the numbers. In.
Created by Stacey Wilson
International Computer Driving Licence Syllabus version 5.0
Column Sequences An Investigation.
Sort and display data There are many ways to collect, sort and represent data. Try these activities to learn a few.
Managing Worksheets And Workbooks
TU170 Learning online and computing with confidence
International Computer Driving Licence Syllabus version 5.0
PowerPoint: Tables and Charts
ITEC 1001 Test 3 Review 11/8/2018.
Ch 11 Resource Constraints and Linear Programming
Using Excel to Graph Data
Creating a Worksheet and an Embedded Chart
Wyndor Example; Enter data
Creating Macros in Excel
Lesson 18 Getting Started with Excel Essentials
Lesson 4 – Count, CountIF, V Lookup
Chapter 5 Microsoft Excel Window
Intro to Engineering Design
Using Excel to Graph Data
Microsoft Excel 2007 – Level 1
European Computer Driving Licence
REACH Computer Resource Center
Incremental Problem Solving for CS1100
Solving Linear Optimization Problems Using the Solver Add-in
Intro to Excel CSCI-150.
A few tricks to take you beyond the basics of Microsoft Office
Introduction to Excel 2007 Part 3: Bar Graphs and Histograms
Unit G: Using Complex Formulas, Functions, and Tables
Defining Religious Experiences
Presentation transcript:

Table Lookup Illustrated with Product Stress Testing Karl Lieberherr 7/3/2019 Stress Testing

Product Stress Testing We have k identical copies of a product, such as a computer chip. Each product has n stress levels, numbered from 0 to n-1. Think of a stress level as the frequency applied to the chip. We can make at most q stress tests. For each test, the tested product either breaks or not (yes/no answer). If it does not break, we assume that it is like a new product. If it breaks, we have only k-1 products left. For each constant q, we want to create a lookup table which tells us for a given n how many products we need (k). We want the minimum k because the products cost money when they get destroyed. 7/3/2019 Stress Testing

Example Decision Tree 0 1 2 3 4 5 6 n=7 stress levels q=3 questions k q n n=7 stress levels q=3 questions k=2 products 1 5 2 4 6 Meaning of table M(q,k): With q questions and k products at most M(q,k) stress levels can be distinguished. 0 1 2 3 4 5 6 M(2,1)=3 M(2,2)=4 1/23/2011 Asymptotic Growth

Solving Product Stress Testing Requires some thinking, but solution is surprisingly simple: Solution is given by table M[q,k] which has simple construction rules. Typical for computational tasks which have a solution based on Dynamic Programming. Build solution for larger problem out of solution of two overlapping simpler subproblems. 7/3/2019 Stress Testing

Table M Boundary Conditions Top Diagonal: *2: M[q,q]]=2q Left: 1: M[q,0]=1 Internal Rule: easily expressed in Excel and dragged down and over. (1 left above + 1 above) M[q,k]=M[q-1,k]+M[q-1,k-1) 7/3/2019 Stress Testing

Two basic search techniques Linear Search: go up the stress levels one by one. Binary Search: go to the middle and then search either lower or upper range. 7/3/2019 Stress Testing

Linear Search 7/3/2019 Stress Testing

Example Linear Search: Left subtree 3 q k n n=7 stress levels q=3 questions k=2 products 1 5 2 4 6 Meaning of table M(q,k): With q questions and k products at most M(q,k) stress levels can be distinguished. 0 1 2 3 4 5 6 M(2,1)=3 M(2,2)=4 1/23/2011 Asymptotic Growth

Binary Search 7/3/2019 Stress Testing

Example Binary Search: Right subtree 3 k q n n=7 stress levels q=3 questions k=2 products 1 5 2 4 6 Meaning of table M(q,k): With q questions and k products at most M(q,k) stress levels can be distinguished. 0 1 2 3 4 5 6 M(2,1)=3 M(2,2)=4 1/23/2011 Asymptotic Growth

Table M What does table mean? With q=4 questions and n=9 stress levels we need 2 products because M[4,1]=5 and M[4,2]=11 and 9 is between 5 and 11. Will need an interval lookup. 7/3/2019 Stress Testing

Table M What does table mean? n < 1: #N/A n=1 => k=0 7/3/2019 Stress Testing

Table M Bring to Excel Format: What does table mean? n < 1: #N/A n=1 => k=0 2 <= n <= 5 => k=1 6 <= n <= 11 => k=2 12 <= n <= 15 => k=3 16 <= n <=16 => k=4 17 <= n: #N/A What does table mean? n < 1: #N/A 1 <= n < 2 => k=0 2 <= n < 6 => k=1 6 <= n < 12 => k=2 12 <= n < 16 => k=3 16 <= n <17 => k=4 17 <= n: #N/A 7/3/2019 Stress Testing

Table M Bring to Excel Format: Table to use with Excel What does table mean? n < 1: #N/A 1 <= n < 2 => k=0 2 <= n < 6 => k=1 6 <= n < 12 => k=2 12 <= n < 16 => k=3 16 <= n <17 => k=4 17 <= n: #N/A 1 2 6 12 16 17 3 4 #N/A 7/3/2019 Stress Testing

Lookup table preparation HTableq4? Need to carefully prepare table HTableq4. We would like to write: =HLOOKUP(LookupValue,HTableq4,2,TRUE) e.g., =HLOOKUP(5,HTableq4,2,TRUE)=1 e.g., =HLOOKUP(6,HTableq4,2,TRUE)=2 7/3/2019 Stress Testing

Preparing the table for lookup How Excel Interval Lookup works Before How did we prepare the table: For last row add one to every cell (green). Add additional row at bottom 1,2, … Add additional first column 1,0 (yellow). Add #N/A to cell in right lower corner. HTable4q consists of bottom 2 rows. After 7/3/2019 Stress Testing

Adding Error Handling Use the Tantrum, not Constructivist Style. https://github.com/crista/exercises-in-programming-style/tree/master/21-tantrum Only lookup values between 1 and 16 are allowed. HOW? WANT: 7/3/2019 Stress Testing

Review We solved the Product Stress Testing Problem. We used a tabular technique known as Dynamic Programming. The table M[q,k] has a simple construction which we expressed in a spreadsheet. We learned Linear Search and Binary Search. They are special cases of the general solution to Product Stress Testing. We prepared the table M[q,k]=n for interval lookup for k given q and n. 7/3/2019 Stress Testing

Details How to extract a table from Excel and insert it into a document? Select the rectangular range of cells you want to extract. Go to Home/Copy/Copy as picture Appearance: as shown on screen Format: Picture OK In the document: use Ctrl-V to insert the table into the document. Works for Word, PowerPoint, etc. 7/3/2019 Stress Testing

Details To prepare a table row for lookup, we had to add 1 to every entry. What is the easiest way to do this? Put a 1 into a cell and copy it. Select the range of numbers and right click – paste special – select ‘add’ -OK 7/3/2019 Stress Testing

Can’t Drag along Diagonal Excel does not allow to drag a formula along a diagonal. Therefore, in table M the last entry of every row needs special treatment. 7/3/2019 Stress Testing