Coursehero >>
Pennsylvania >>
Lehigh >>
IE 170 Course Hero has millions of student submitted documents similar to the one below including study guides, homework solutions, papers, and exam answer keys.
Data Divide-And-Conquer Structures Divide-And-Conquer Data Structures Taking Stock Last Time Master Theorem Practice Some Sorting Algs Beginning of Java Collections Interfaces Jeff Linderoth Department of Industrial and Systems Engineering Lehigh University IE170: Algorithms in Systems Engineering: Lecture 7 This Time Hashes Trees and Binary Search Trees More on Java Collections Interfaces lab == fun January 29, 2007 Jeff Linderoth Divide-And-Conquer Data Structures IE170:Lecture 7 Master Theorem Jeff Linderoth Divide-And-Conquer Data Structures IE170:Lecture 7 Master Theorem The Java Collections Interfaces In the remainder of the class, we will be using the Java Collections Interface: http://java.sun.com/docs/books/ tutorial/collections/TOC.html Important: Most of what I will say only works if you set the "code level" to Java 5.0 in eclipse! Preferences, Java Compiler: Set this to 5.0 The interfaces form a hierarchy: (A subset of) the Collections Interface public interface Collection<E> extends Iterable<E> { // Basic operations int size(); boolean isEmpty(); boolean contains(Object element); boolean add(E element); //optional boolean remove(Object element); //optional Iterator<E> iterator(); // Array operations Object[] toArray(); <T> T[] toArray(T[] a); } Jeff Linderoth IE170:Lecture 7 Jeff Linderoth IE170:Lecture 7 Divide-And-Conquer Data Structures Master Theorem Divide-And-Conquer Data Structures Master Theorem Set Hash? A Set is a Collection that cannot contain duplicate elements. It models the mathematical set abstraction. The Set interface contains only methods inherited from Collection and adds the restriction that duplicate elements are prohibited. Set is still an interface. There are 3 implementations of Set in Java. HashSet TreeSet LinkedHashSet No, Cheech. A hash table is a data structure in which we can "look up" (or search) for an element efficiently. The expected time to search for an element in a has table in O(1). (Worst case time in (n)). Think of a hash table as an array With a regular array, we find the element whose "key" is j in position j of the array. j = 17; val = a[j]; . This is called direct addressing and it takes O(1) on your regular ol' random access computer. This form of direct addressing works when we can afford to have an array with one position for every possible key Jeff Linderoth Divide-And-Conquer Data Structures IE170:Lecture 7 Master Theorem Jeff Linderoth Divide-And-Conquer Data Structures IE170:Lecture 7 Master Theorem Example More on Hash In a hash table the number of keys stored is small relative to the number of possible keys A hash table is an array. Given a key k, we don't use k as the index into the array rather, we have a hash function h, and we use h(k) as an index into the array. Given a "universe" of keys K. Think of K as all the words in a dictionary, for example This look great. However, what happens if h(k1 ) = h(k2 ) for k1 = k2 ? Two keys hash to the same value. The elements collide This is typically handled by chaining Instead of storing a key k (or later key value pair (k, v)) at every position in the array, we store a linked list of keys. Example: h : K {0, 1, . . . m - 1}, so that h(k) gets mapped to an integer between 0 and m - 1 for every k K We say that k hashes to h(k) Jeff Linderoth IE170:Lecture 7 Jeff Linderoth IE170:Lecture 7 Divide-And-Conquer Data Structures Master Theorem Divide-And-Conquer Data Structures Master Theorem A (Fairly) Obvious point BAD hash function. h(k) = 3. If all keys hash to the same value, then looking up a key takes (n). (Since it is just a list). We would like a hash function to be "random" in the sense that a key k is equally likely to has into any of the m slots in the hash table (array). If we have such a function, then we can show that the average n time required to search for a key is (1 + m ) When hashing keys that are not numbers, you must convert them to numbers, e.g.: beer = -142 + 24 + 53 + 52 + 181 = 42. Average Hash Search Time The number of elements to be searched is 1 more than the number of elements that appear before x in x s list. Assuming we insert items into the list at the beginning, then this is the number of elements that were inserted after x. By definition: P(h(ki ) = h(kj )) = 1 m Let Xij be indicator random variable that is equal to one if and only if h(ki ) = h(kj ) Then just compute: E 1 n n i=1 1 + n j=i+1 Xij . Jeff Linderoth Divide-And-Conquer Data Structures IE170:Lecture 7 Master Theorem Jeff Linderoth Divide-And-Conquer Data Structures IE170:Lecture 7 Master Theorem Hash Functions Modular Hash Function Let m be (roughly) the size of your hash table: h(k) = k mod m Good choice of m: A prime number not too close to an exact power of 2 Multiplicative Hash Function h(k) = m(kA mod 1) Multiply key k by A, take fractional part, and multiply by m If m = 2p this can be done very fast with bit shifting A = ( 5 - 1)/2 seems a good value Back to the Java Collections So now you know what a Java HashSet is. A LinkedHashSet is a HashSet that also keeps track of the order in which elements were inserted. (Think of laying a linked list on top of the Hash Table) A TreeSet stores its elements in a alertred-black tree. In order to understand red-black trees, we must know about binary search trees. Hash table is "good" at insert(), search(), delete(). But what if you also want to support (efficiently) minimum(), maximum() Jeff Linderoth IE170:Lecture 7 Jeff Linderoth IE170:Lecture 7 Divide-And-Conquer Data Structures Java Collections Divide-And-Conquer Data Structures Java Collections Trees A tree is a set of items organized into a hierarchical structure (think of a family tree). When organized in this way, we call the items nodes. Each node has a single designated parent and one or more children. There is a single designated node, called the root, with no parent. Any node with no children is called a leaf. Any node with children is called internal. A tree in which all nodes have 2 or fewer children is called a binary tree. Storing a list of items in a tree structure allows us to represent additional relationships among the items in the list. Jeff Linderoth Divide-And-Conquer Data Structures IE170:Lecture 7 Java Collections Binary Tree Data Structures To store a tree of keys k, or maybe (key, value) pairs: (k, v), we need a data structure supporting three basic operations left l: Points to the left child right r: Points to the right child parent p: Points to the parent This allows us to traverse tree the and perform other operations on it. The level of a node in the tree is the number of recursive calls to parent() needed to reach the root. The depth of the tree is the maximum level of any of its nodes. A balanced tree is one in which all leaves are at levels k or k - 1, where k is the depth of the tree. Jeff Linderoth Divide-And-Conquer Data Structures IE170:Lecture 7 Java Collections Data Structures for Storing Trees Array The root is stored in position 0. The children of the node in position i are stored in positions 2i + 1 and 2i + 2. This determines a unique storage location for every node in the tree and makes it easy to find a node's parent and children. Using an array, the basic operations can be performed very efficiently. If the tree is unbalanced or dynamic, a linked list may be better. Data Structures for Storing Trees Linked List In a linked list, each item is stored along with explicit pointers to its parent and children. This allows for easy addition and deletion of nodes from the tree. Jeff Linderoth IE170:Lecture 7 Jeff Linderoth IE170:Lecture 7 Divide-And-Conquer Data Structures Java Collections Divide-And-Conquer Data Structures Java Collections Binary Search Tree Binary Search Trees There are lots of binary trees that can satisfy this property. A binary search tree is a data structrue that is conceptualized as a binary tree, but has one additional property: It is obvious that the number of binary tree on n nodes bn is bn = Binary Search Tree Property If y is in the left subtree of x, then k(y) k(x) 1 n+1 2n n bn = 4n (1 + O(1/n)) n3/2 And not all of these (exponentially many) are created equal. In fact, we would like to keep our binary search trees "short", because most of the operations we would like to support are a function of the height h of the tree. Jeff Linderoth Divide-And-Conquer Data Structures IE170:Lecture 7 Java Collections Jeff Linderoth Divide-And-Conquer Data Structures IE170:Lecture 7 Java Collections Operations Short Is Beautiful search() takes O(h) minimum(), maximum() also take O(h) Slightly less obvious is that insert(), delete() also take O(h) Thus we would like to keep out binary search trees "short" (h is small). successor(x) How would I know "next biggest" element? If right subtree is not empty: minimum(r(x)) If right subtree is empty: Walk up tree until you make the first "right" move insert(x) Just walk down the tree and put it in. It will go "at the bottom" Jeff Linderoth IE170:Lecture 7 Jeff Linderoth IE170:Lecture 7 Divide-And-Conquer Data Structures Java Collections Divide-And-Conquer Data Structures Java Collections delete() red-black Trees red-black trees are simply a way to keep binary search trees short. (Or balanced) If 0 or 1 child, deletion is fairly easy If 2 children, deletion is made easier by the following fact: Binary Search Tree Property If a node has 2 children, then its successor will not have a left child its predecessor will not have a right child Balanced here means that no path on the tree is more than twice as long as another path. An implication of this is that its maximum height is 2 lg(n + 1) search(), minimum(), maximum(), all take O(lg n) It's implementation is complicated, so we won't cover it insert(): also runs in O lg(n) delete(): runs in O lg(n) (but it is more complicated to maintain the "red-black" property) Jeff Linderoth Divide-And-Conquer Data Structures IE170:Lecture 7 Java Collections Jeff Linderoth Divide-And-Conquer Data Structures IE170:Lecture 7 Java Collections Back to the Java Collections Lists red-black trees remain sorted You don't really have any control over the order in which things will appear in a HashSet If you care about that you should use a LinkedHashSet, which lays a linked list on top of the HashSet In general, Sets are not for ordered collections of items, for that, you should use a list A List is an ordered Collection (sometimes called a sequence). Lists may contain duplicate elements. In addition to the operations inherited from Collection, the List interface includes operations for the following: Positional access: manipulate elements based on their numerical position in the list Search: searches for a specified object in the list and returns its numerical position Jeff Linderoth IE170:Lecture 7 Jeff Linderoth IE170:Lecture 7 Divide-And-Conquer Data Structures Java Collections Divide-And-Conquer Data Structures Java Collections (Subset of) List Interface public interface List<E> extends Collection<E> { // Positional access E get(int index); E set(int index, E element); //optional boolean add(E element); //optional void add(int index, E element); //optional E remove(int index); //optional // Search int indexOf(Object o); int lastIndexOf(Object o); // Iteration ListIterator<E> listIterator(); ListIterator<E> listIterator(int index); } Jeff Linderoth Divide-And-Conquer Data Structures IE170:Lecture 7 Java Collections Java List Implementations Two List Implementations 1 2 ArrayList: which is usually the better-performing LinkedList: offers better performance under certain circumstances, (i.e. if lots of add/remove in the middle if the list) Jeff Linderoth Divide-And-Conquer Data Structures IE170:Lecture 7 Java Collections Java Lists have extended iterators List Stuff ListIterator<E> listIterator(): gives iterator at beginning ListIterator<E> listIterator(int index): gives iterator at specified index The index refers to the element that would be returned by an initial call to next() The cursor is always between two elements: the one that would be returned by a call to previous() the one that would be returned by a call to next() public interface ListIterator<E> extends Iterator<E> { boolean hasNext(); E next(); boolean hasPrevious(); E previous(); int nextIndex(); int previousIndex(); void remove(); //optional void set(E e); //optional void add(E e); //optional } The n + 1 valid index values correspond to the n + 1 gaps between elements, from the gap before the first element to the gap after the last one. Jeff Linderoth IE170:Lecture 7 Jeff Linderoth IE170:Lecture 7 Divide-And-Conquer Data Structures Java Collections Next Time A bit on Java Collection Map Interface Move on to Heaps (Chapter 6) We have covered chapters 1-4, 10-11, and Appendices A and B News New Homework Posted! Let's have a little quiz on 2/7 Homework is due 2/5: No late homework accepted. (I need to hand out solutions and discuss in class on 2/5). Jeff Linderoth IE170:Lecture 7
Find millions of documents here - Study Guides, Homework Solutions, Papers, Exam Answer Keys and more.
Course Hero has millions of course related materials that will enable you to learn better, faster and get an A in all your courses.
Below is a small sample set of documents:
lecture11.pdf
Path: Lehigh >> IE >> 426 Fall, 2008
Description: Soft Constraints Goal Programming Flow Models Soft Constraints Goal Programming Flow Models Review Got MILP? IE426: Optimization Models and Applications: Lecture 11 Jeff Linderoth Department of Industrial and Systems Engineering Lehigh University ...
lecture8.pdf
Path: Lehigh >> IE >> 417 Fall, 2009
Description: Today\'s Outline IE417: Nonlinear Programming: Lecture 8 Trust Regions Jeff Linderoth Department of Industrial and Systems Engineering Lehigh University Dogleg Example Convergence Proofs Homework for Next Time 9th February 2006 lehigh-logo lehigh...
lecture4.pdf
Path: Lehigh >> IE >> 418 Fall, 2008
Description: Variable Selection Node Selection IE418: Integer Programming Je Linderoth Department of Industrial and Systems Engineering Lehigh University 2nd February 2005 Je Linderoth Variable Selection Node Selection IE418 Integer Programming Boring Stu Ex...
lecture23.pdf
Path: Lehigh >> IE >> 170 Fall, 2008
Description: All-Pairs Shortest Paths Floyd-Warshall Transitive Closure All-Pairs Shortest Paths Floyd-Warshall Transitive Closure Taking Stock IE170: Algorithms in Systems Engineering: Lecture 23 Jeff Linderoth Department of Industrial and Systems Engineering ...
lecture15.pdf
Path: Lehigh >> IE >> 170 Fall, 2008
Description: Graph Theory Breadth First Search Graph Theory Breadth First Search Taking Stock IE170: Algorithms in Systems Engineering: Lecture 15 Jeff Linderoth Department of Industrial and Systems Engineering Lehigh University Last Time DP for Lot Sizing Gr...
lecture18.txt
Path: Lehigh >> IE >> 170 Fall, 2008
Description: 9 P,0.0,1.0 N,1.0,0.0 A,1.0,2.0 I,2.0,1.0 C,3.0,0.0 B,3.0,2.0 E,5.0,0.0 S,5.0,2.0 T,6.0,1.0 P,A,10.0 P,N,12.0 A,N,9.0 A,B,8.0 N,I,3.0 N,C,1.0 I,C,3.0 B,I,7.0 B,S,8.0 B,E,5.0 C,E,6.0 S,E,9.0 S,T,2.0 E,T,11.0...
moc-10.txt
Path: Lehigh >> IE >> 418 Fall, 2008
Description: 0 -84 41 -35 -63 40 -88 -49 15 -36 -84 0 -16 62 -104 -63 -29 -70 13 -38 41 -16 0 26 67 3 -108 -107 33 -46 -35 62 26 0 -97 81 -91 45 -36 -104 -63 -104 67 -97 0 62 68 -42 -17 4 40 -63 3 81 62 0 -25 -51 42 15 -88 -29 -108 -91 68 -25 0 -43 -84 -70 ...
lecture20-example2.txt
Path: Lehigh >> IE >> 170 Fall, 2008
Description: 5 S,0.0,1.0 P,2.0,0.0 A,4.0,1.0 B,3.0,2.0 T,1.0,2.0 S,P,-1.0 S,T,4.0 P,A,2.0 P,B,2.0 P,T,3.0 A,B,-3.0 B,T,5.0 B,P,1.0 ...
b2.txt
Path: Lehigh >> IE >> 170 Fall, 2008
Description: 7 1 2 3 5 7 11 13 ...
lecture27.pdf
Path: Lehigh >> IE >> 170 Fall, 2008
Description: Taking Stock IE170: Algorithms in Systems Engineering: Lecture 27 Jeff Linderoth Department of Industrial and Systems Engineering Lehigh University Last Time Easy Quiz This Time Numerical Linear Algebra Matrix representations April 9, 2007 Jeff ...
lecture19.pdf
Path: Lehigh >> IE >> 170 Fall, 2008
Description: Spanning Trees Algorithms Spanning Trees Algorithms Taking Stock IE170: Algorithms in Systems Engineering: Lecture 19 Jeff Linderoth Department of Industrial and Systems Engineering Lehigh University Last Time Minimum Spanning Trees This Time Mo...
lecture11.pdf
Path: Lehigh >> IE >> 170 Fall, 2008
Description: Taking Stock IE170: Algorithms in Systems Engineering: Lecture 11 Jeff Linderoth Department of Industrial and Systems Engineering Lehigh University Last Time Easiest Quiz Ever This Time Intro to Dynamic Programming February 9, 2007 Jeff Linderot...
lecture2.pdf
Path: Lehigh >> IE >> 170 Fall, 2008
Description: Sums Arithmetic Series IE170: Algorithms in Systems Engineering: Lecture 2 Jeff Linderoth Department of Industrial and Systems Engineering Lehigh University n 1 + 2 + + n = k=1 k= n(n + 1) 2 Sum Of Squares n k2 = k=0 n(n + 1)(2n + 1) 6 Janu...
lecture22.pdf
Path: Lehigh >> IE >> 170 Fall, 2008
Description: Bellman Ford Single Source Shortest Path on a DAG Dijkstra Bellman Ford Single Source Shortest Path on a DAG Dijkstra Taking Stock IE170: Algorithms in Systems Engineering: Lecture 22 Jeff Linderoth Department of Industrial and Systems Engineering ...
lecture9.pdf
Path: Lehigh >> IE >> 170 Fall, 2008
Description: Heaps Heap Sort Heaps Heap Sort Taking Stock IE170: Algorithms in Systems Engineering: Lecture 9 Jeff Linderoth Department of Industrial and Systems Engineering Lehigh University Last Time Binary Search Trees Java Collections Interfaces: Maps Hea...
lecture30.pdf
Path: Lehigh >> IE >> 170 Fall, 2008
Description: Solving Linear Systems IE170: Algorithms in Systems Engineering: Lecture 30 Jeff Linderoth Department of Industrial and Systems Engineering Lehigh University Last time we learned about how to solve systems Ax = b, when A was symmetric and positive-...
lecture16.pdf
Path: Lehigh >> IE >> 170 Fall, 2008
Description: Graph Theory Breadth First Search Graph Theory Breadth First Search Taking Stock IE170: Algorithms in Systems Engineering: Lecture 16 Jeff Linderoth Department of Industrial and Systems Engineering Lehigh University Last Time The Wonderful World ...
lecture20.pdf
Path: Lehigh >> IE >> 170 Fall, 2008
Description: Shortest Paths The Algorithms Shortest Paths The Algorithms Taking Stock IE170: Algorithms in Systems Engineering: Lecture 20 Jeff Linderoth Department of Industrial and Systems Engineering Lehigh University Last Time Minimum Spanning Trees Strong...
lecture12.pdf
Path: Lehigh >> IE >> 170 Fall, 2008
Description: Capital Budgeting Assembly Line Balancing Capital Budgeting Assembly Line Balancing Taking Stock IE170: Algorithms in Systems Engineering: Lecture 12 Jeff Linderoth Department of Industrial and Systems Engineering Lehigh University Last Time Intr...
lecture29.pdf
Path: Lehigh >> IE >> 170 Fall, 2008
Description: Taking Stock IE170: Algorithms in Systems Engineering: Lecture 29 Jeff Linderoth Department of Industrial and Systems Engineering Lehigh University Last Time Matrix Review This Time Solving Triangular Systems Solving Symmetric Positive Definite Sy...
lecture31.pdf
Path: Lehigh >> IE >> 170 Fall, 2008
Description: I Hate A-Rod! IE170: Algorithms in Systems Engineering: Lecture 31 Jeff Linderoth Department of Industrial and Systems Engineering Lehigh University April 20, 2007 Jeff Linderoth (Lehigh University) IE170:Lecture 31 Lecture Notes 1 / 14 Jeff L...
lecture8.pdf
Path: Lehigh >> IE >> 170 Fall, 2008
Description: Hashes Red-Black Trees Hashes Red-Black Trees Taking Stock Last Time Hashes (Intro to) Binary Search Trees More on Java Collections Interfaces Jeff Linderoth Department of Industrial and Systems Engineering Lehigh University IE170: Algorithms in S...
lecture18.pdf
Path: Lehigh >> IE >> 170 Fall, 2008
Description: DFS Review Topological Sort Strongly Connected Components DFS Review Topological Sort Strongly Connected Components Taking Stock IE170: Algorithms in Systems Engineering: Lecture 18 Jeff Linderoth Department of Industrial and Systems Engineering Le...
lecture28.pdf
Path: Lehigh >> IE >> 170 Fall, 2008
Description: Linear Algebra Review Another Look at Matrix Multiplication Important Notation IE170: Algorithms in Systems Engineering: Lecture 28 Jeff Linderoth Department of Industrial and Systems Engineering Lehigh University If A Rmn , then Aj is the j th c...
lecture25.pdf
Path: Lehigh >> IE >> 170 Fall, 2008
Description: Taking Stock IE170: Algorithms in Systems Engineering: Lecture 25 Jeff Linderoth Department of Industrial and Systems Engineering Lehigh University Last Time Flows This Time (Cardinality) Matching Homework and Review March 30, 2007 Jeff Linderot...
pi1.txt
Path: Lehigh >> IE >> 170 Fall, 2008
Description: 5 1 0 3 4 2 ...
pi2.txt
Path: Lehigh >> IE >> 170 Fall, 2008
Description: 7 5 0 4 3 6 2 1 ...
b1.txt
Path: Lehigh >> IE >> 170 Fall, 2008
Description: 5 42 666 -1 0 3 ...
lecture20-example.txt
Path: Lehigh >> IE >> 170 Fall, 2008
Description: 5 S,0.0,1.0 P,1.0,2.0 A,1.0,0.0 B,2.0,2.0 T,2.0,0.0 S,P,4.0 S,A,1.0 P,A,1.0 B,P,-3.0 A,B,1.0 A,T,2.0 B,T,-1.0 ...
dG1.txt
Path: Lehigh >> IE >> 170 Fall, 2008
Description: 9 A,0.0,1.0 H,1.0,0.0 B,1.0,2.0 I,2.0,1.0 G,3.0,0.0 C,3.0,2.0 F,5.0,0.0 D,5.0,2.0 E,6.0,1.0 A,B,4.0 A,H,8.0 B,H,11.0 B,C,8.0 H,I,7.0 H,G,1.0 I,G,6.0 I,C,2.0 G,F,2.0 C,F,4.0 C,D,7.0 D,F,14.0 D,E,9.0 E,F,10.0 ...
moc-100.txt
Path: Lehigh >> IE >> 418 Fall, 2008
Description: 0 -30 76 -42 -101 43 28 -15 -79 -69 -77 -23 -2 5 86 -79 37 -56 8 -66 -53 50 -46 -37 -66 -51 -14 65 -1 -62 79 -104 4 -11 -78 -99 -8 -30 -81 42 -70 -88 -38 78 82 52 -49 68 -68 -70 58 -48 -30 36 -82 64 19 79 -32 -56 -15 -7 16 -11 51 -22 40 -63 -4 72 38 ...
lecture13.pdf
Path: Lehigh >> IE >> 418 Fall, 2008
Description: Facet Proving Dual Descriptions Last Results Facet Proving Dual Descriptions Last Results Key Things We Learned Last Time IE418: Integer Programming Jeff Linderoth Department of Industrial and Systems Engineering Lehigh University A face F is sai...
lecture10.pdf
Path: Lehigh >> IE >> 417 Fall, 2009
Description: Last Time: Conjugate Gradient Solving Ax = b IE417: Nonlinear Programming: Lecture 10 Jeff Linderoth Department of Industrial and Systems Engineering Lehigh University Or nn min (x) = 1/2 xT Ax - bT x, with A S+ def Conjugate Gradient Algorithm...
lecture32.pdf
Path: Lehigh >> IE >> 170 Fall, 2008
Description: This Time IE170: Algorithms in Systems Engineering: Lecture 32 A whirlwind tour of computational complexity Jeff Linderoth Department of Industrial and Systems Engineering Lehigh University You are not responsible for this material on the final, bu...
lecture2.pdf
Path: Lehigh >> IE >> 417 Fall, 2009
Description: Today\'s Outline IE417: Nonlinear Programming: Lecture 2 Jeff Linderoth Department of Industrial and Systems Engineering Lehigh University Say Cheese! Take 2 Some Quick Definitions Taylor\'s Theorem Optimality Conditions for Unconstrained Optimizatio...
lab1.pdf
Path: Lehigh >> IE >> 170 Fall, 2008
Description: IE170 Lab #1 Prof Jeff Linderoth IE 170 Lab #1: Getting Started Due Date: January 22, 2006. 1PM. 1 Description and Objectives In this lab, we will set up our working environment for future labs, familiarize ourselves with Eclipse, and write som...
lab4.pdf
Path: Lehigh >> IE >> 170 Fall, 2008
Description: IE170 Lab #4 Mustafa R. Kilin & Jeff Linderoth c IE 170 Lab #4: Heaps and Heapsort Due Date: February 12, 2006. 11AM. 1 Description and Objectives In this lab, we will implement a clever partially ordered data structure called a heap, and use a...
hw2-answers.pdf
Path: Lehigh >> IE >> 3 Fall, 2009
Description: IE 495 Stochastic Programming Problem Set #2 - Solutions 1 Math Time z = min 2y1 + y2 Consider the problem (P): subject to y1 + y2 y1 y1 , y2 1.1 Problem Show that P has complete recourse. Answer: Write P as 1 - x1 - x1 - x2 0 min 2y1 + y...
hw2-answers.pdf
Path: Lehigh >> IE >> 495 Fall, 2008
Description: IE 495 Stochastic Programming Problem Set #2 - Solutions 1 Math Time z = min 2y1 + y2 Consider the problem (P): subject to y1 + y2 y1 y1 , y2 1.1 Problem Show that P has complete recourse. Answer: Write P as 1 - x1 - x1 - x2 0 min 2y1 + y...
lecture16.pdf
Path: Lehigh >> IE >> 418 Fall, 2008
Description: UpLifting Downlifting General Lifting UpLifting Downlifting General Lifting Last Time. conv(knap) = conv({x Bn | jN aj xj b}) IE418: Integer Programming Jeff Linderoth Department of Industrial and Systems Engineering Lehigh University CN | jC...
lecture12.pdf
Path: Lehigh >> IE >> 418 Fall, 2008
Description: Face(t)s A Big Theorem Examples Face(t)s A Big Theorem Examples Key Things We Learned Last Time IE418: Integer Programming Jeff Linderoth Department of Industrial and Systems Engineering Lehigh University If {x Rn | Ax = b} = , the maximum numbe...
lecture18.pdf
Path: Lehigh >> IE >> 418 Fall, 2008
Description: Matching Chvtal-Gomory a Mixed Integer Rounding Matching Chvtal-Gomory a Mixed Integer Rounding Matching Let\'s Consider a New Graph Problem Matching. IE418: Integer Programming Jeff Linderoth Department of Industrial and Systems Engineering Lehig...
lecture8.pdf
Path: Lehigh >> IE >> 418 Fall, 2008
Description: Ingredients of Complexity Ingredient #1: Problems Ingredient #2: Easy or Hard Classes and Certificates IE418: Integer Programming Jeff Linderoth Department of Industrial and Systems Engineering Lehigh University 16th February 2005 Jeff Linderoth I...
lecture1.pdf
Path: Lehigh >> IE >> 417 Fall, 2009
Description: Today\'s Outline IE417: Nonlinear Programming: Lecture 1 Jeff Linderoth Department of Industrial and Systems Engineering Lehigh University About this class. About me About you Say Cheese! Quiz Number 0 Background Material What is Nonlinear Programm...
TIMES.pdf
Path: Lehigh >> DMD >> 1 Fall, 2008
Description: IMPUTING SPEED RECORDS DONALD M. DAVIS A fellow long-distance runner and I recently compiled records for Pennsylvania residents of each age and sex at 50 km, 50 miles, 100 km, 100 miles, and 24 hours. ([1]) The 50 km distance does not have as many h...
membership_form.pdf
Path: Lehigh >> BCM >> 0 Fall, 2009
Description: Membership in the local chapter is $18.00 for the first year and $20.00 for renewal years. Student membership for full-time students (college and below) is $10. Renewals are on a calendar year basis with all memberships becoming due January 1. Please...
sample_paper_2x2.pdf
Path: Lehigh >> BCM >> 0 Fall, 2009
Description: ...
sample_paper_oneway.pdf
Path: Lehigh >> BCM >> 0 Fall, 2009
Description: ...
orderform.pdf
Path: Lehigh >> BCM >> 0 Fall, 2009
Description: ORDER FORM BIRDS OF THE LEHIGH VALLEY AND VICINITY Mail this form to: LVAS, P.O. Box 290, Emmaus, PA 18049 Please make checks payable to LVAS. Name _ Address _ __ _ _ Telephone number (day) _ (evening) _ Birds of the Lehigh Valley _ copies @ $12.00...
Osprey_Jan09.pdf
Path: Lehigh >> BCM >> 0 Fall, 2009
Description: Newsletter of The Lehigh Valley Audubon Society A Chapter of The National Audubon Society THE OSPREY VOLUME XXXIII NUMBER 1 January 2009 MESSAGE FROM YOUR PRESIDENT Hello Everyone and Happy New Year! Are you looking for something to do to help fi...
Osprey_April08.pdf
Path: Lehigh >> BCM >> 0 Fall, 2009
Description: Newsletter of The Lehigh Valley Audubon Society A Chapter of The National Audubon Society THE OSPREY VOLUME XXXII NUMBER 2 April 2008 MESSAGE FROM YOUR PRESIDENT It\'s hard to believe that its time for another newsletter, that it is spring time, t...
Res_Methods_fall05.doc
Path: Lehigh >> BCM >> 0 Fall, 2009
Description: PSYCHOLOGY 210 Fall 2005 Experimental Research Methods and Laboratory (4) WI Location: Class time: Instructor: Office: Phone: Email: Office Hours: Teaching Assistant: Office: Phone: Email: Office Hours: Classes: Whitaker Lab 203 Laboratory work: Chan...
Presentation_Guide.doc
Path: Lehigh >> BCM >> 0 Fall, 2009
Description: Student Presentation Guide 1. Preliminary: Provide a slide with a descriptive name for your project and the name(s) of the student researcher(s) below it. 2. Intro: describe the general topic/question of your research, being sure to motivate why thi...
prosim2.3.ppt
Path: Lehigh >> RVB >> 2 Fall, 2009
Description: Procedural Circuit Simulation with decida Richard V. H. Booth Agere Systems, Allentown, PA decida Device and Circuit Data Analysis http:/decida.org Platform for Procedural Circuit Simulation M.S. Toth and R.V. Booth, \"A Designer-Customizable De...
Lect6.doc
Path: Lehigh >> RHS >> 2 Fall, 2009
Description: IE 409 Time Series Analysis Lecture 6 Covers Sections 3.1 3.2 in the text ARMA(p,q) Models Xt = Zt + 1Xt-1 + 2Xt-2 +.+ pXt-p 1Zt-1+Zt-2+.+ qZt-q Xt - 1Xt-1 - 2Xt-2 -.- pXt-p = Zt + 1Zt-1+Zt-2+.+ qZt-q (1- 1B- 2B2 -.- pBp)Xt =(1+ 1B+ 2B2 +.+ q...
A30-39.TXT
Path: Lehigh >> EJK >> 0 Fall, 2008
Description: LETTER #30 Sunday 31 Dec 1995 Dear Everyone: After spending most of the week traveling and acting like tourists, we are back home for a very quiet New Year\'s Eve, just the two of us and probably a bowl of popcorn. Before describing our travels I wi...
A1-10.TXT
Path: Lehigh >> EJK >> 0 Fall, 2008
Description: LETTER #1 13 June 1995 Dear Everyone, I am writing this at the end of our training in Philadelphia which extended from Sunday afternoon through Tuesday. The program aims to allay our fears about the Peace Corps service (something that has not been ...
ch15-prob-over-time.ppt
Path: Lehigh >> AI >> 2008 Fall, 2009
Description: Ch. 15 Probabilistic Reasoning Over Time Supplemental slides for CSE 327 Prof. Jeff Heflin Umbrella World Example P(R0)=<0.5,0.5> Rt-1 T F Raint-1 P(Rt) 0.7 0.3 Raint Rt T F Umbrellat-1 Umbrellat P(Ut) 0.9 0.2 Umbrellat+1 Raint+1 Filtering (Umbrel...
final-review.pdf
Path: Lehigh >> AI >> 2008 Fall, 2009
Description: CSE 327, Spring 2008 Final Study Guide Final Time and Place: Wednesday, Apr. 30, 7-10pm Packard 360 Format: You can expect the following types of questions: true/false, short answer, and smaller versions of homework problems. Although you will hav...
project2.pdf
Path: Lehigh >> AGENTS >> 2007 Fall, 2009
Description: CSE 431, Fall 2007 Program #2: Package World Agents Due: Tuesday, Oct. 30 For this assignment, you will design a team of homogeneous agents that will cooperate in order to achieve a simple package delivery task. The agents are situated in a 50x50 gr...
program-3.pdf
Path: Lehigh >> PROGLANG >> 2003 Fall, 2009
Description: CSE 262, Fall 2003 Programming Assignment #3: Java Due at the beginning of the class on December 5 This assignment requires you to develop an object oriented software system in Java that will keep track of pets treated and boarded in an animal hospit...
paper-critique.pdf
Path: Lehigh >> AGENTS >> 2007 Fall, 2009
Description: CSE 431, Fall 2007 Research Paper Critique Depending on which paper you choose to critique, this homework is due at the beginning of class between Tuesday, Nov. 27 and Thursday, December 6. An important skill for any graduate student is the ability ...
hw1.pdf
Path: Lehigh >> AI >> 2008 Fall, 2009
Description: CSE 327, Spring 2008 Homework #1: Chapters 1, 2, 3 The following exercises are due at the beginning of class on February 1. Please type your answers or neatly write them on your own paper. Each exercise will be graded for correctness, so start early...
syllabus.pdf
Path: Lehigh >> SW >> 2008 Fall, 2009
Description: CSE 428. Semantic Web Topics Fall 2008 Professor Jeff Heflin Course Description: In this course you will learn what the Semantic Web is, and what its proponents believe it will eventually be able to do. You will be introduced to many useful Semantic ...
ch03-search.ppt
Path: Lehigh >> AI >> 2009 Fall, 2009
Description: Ch. 3 Search Supplemental slides for CSE 327 Prof. Jeff Heflin 8-puzzle Successor Function 7 5 8 3 2 4 6 1 blank-right 7 5 8 2 6 3 1 4 blank-left 7 2 5 8 3 4 6 1 blank-up 7 5 8 2 3 blank-down 4 6 1 7 5 8 2 3 4 6 1 8-puzzle Search Tree initial ...
ch03-search.ppt
Path: Lehigh >> AI >> 2006 Fall, 2009
Description: Ch. 3 Search Supplemental slides for CSE 327 Prof. Jeff Heflin Problem Solving Agent Algorithm function SIMPLE-PROBLEM-SOLVING-AGENT(percept) returns an action static: seq, an action sequence, initially empty state, some description of the current ...
hw1.pdf
Path: Lehigh >> AI >> 2002 Fall, 2009
Description: CSC 327, Spring 2002 Homework #1: Chapters 3,4 and 5 The following exercises are due at the beginning of class on February 14. 1. Do exercise 3.3(e) from the book (p. 87). 2. Given the map in Figure 3.3 of the book (p. 62), use breadth-first search ...
syllabus.pdf
Path: Lehigh >> AI >> 2003 Fall, 2009
Description: CSE 327. Artificial Intelligence: Theory and Practice Spring 2003 Professor Jeff Heflin Course Description: This course will provide a general introduction to Artificial Intelligence (AI). We will discuss what AI is, survey some of the major results ...
hw1.pdf
Path: Lehigh >> AI >> 2003 Fall, 2009
Description: CSE 327, Spring 2003 Homework #1: Chapters 2,3,4 and 6 The following exercises are due at the beginning of class on February 10. 1. [5 points each part, 20 points total] Do exercise 2.5 from the book (p. 57) 2. [10 points] Do exercise 3.7(d) from th...
syllabus.pdf
Path: Lehigh >> AGENTS >> 2002 Fall, 2009
Description: CSC 498. Intelligent Agents Fall 2002 Professor Jeff Heflin Course Description: Intelligent agents are software programs that can autonomously perform tasks for users. The ideal agent can perceive its environment, communicate with other agents, and t...