Randomized Analysis with Repeated Conditionals for Affine Equalities Bor-Yuh Evan Chang CS263 Final Project December 4, 2002.

Slides:



Advertisements
Similar presentations
A Randomized Satisfiability Procedure for Arithmetic and Uninterpreted Function Symbols Sumit Gulwani George Necula EECS Department University of California,
Advertisements

Global Value Numbering using Random Interpretation Sumit Gulwani George C. Necula CS Department University of California, Berkeley.
Precise Interprocedural Analysis using Random Interpretation Sumit Gulwani George Necula UC-Berkeley.
Language Models Naama Kraus (Modified by Amit Gross) Slides are based on Introduction to Information Retrieval Book by Manning, Raghavan and Schütze.
SOLVING SYSTEMS OF LINEAR EQUATIONS An equation is said to be linear if every variable has degree equal to one (or zero) is a linear equation is NOT a.
1 Constraint operations: Simplification, Optimization and Implication.
Properties of breadth-first search Complete? Yes (if b is finite) Time? 1+b+b 2 +b 3 +… +b d + b(b d -1) = O(b d+1 ) Space? O(b d+1 ) (keeps every node.
Blind Search1 Solving problems by searching Chapter 3.
Touring problems Start from Arad, visit each city at least once. What is the state-space formulation? Start from Arad, visit each city exactly once. What.
Test Case Filtering and Prioritization Based on Coverage of Combinations of Program Elements Wes Masri and Marwa El-Ghali American Univ. of Beirut ECE.
Lab 2 Lab 3 Homework Labs 4-6 Final Project Late No Videos Write up
CS 678 –Relaxation and Hopfield Networks1 Relaxation and Hopfield Networks Totally connected recurrent relaxation networks Bidirectional weights (symmetric)
Discovering Affine Equalities Using Random Interpretation Sumit Gulwani George Necula EECS Department University of California, Berkeley.
Slide 1 EE3J2 Data Mining EE3J2 Data Mining Lecture 10 Statistical Modelling Martin Russell.
Precise Inter-procedural Analysis Sumit Gulwani George C. Necula using Random Interpretation presented by Kian Win Ong UC Berkeley.
CS 326 A: Motion Planning Probabilistic Roadmaps Basic Techniques.
Prénom Nom Document Analysis: Linear Discrimination Prof. Rolf Ingold, University of Fribourg Master course, spring semester 2008.
Program Analysis Using Randomization Sumit Gulwani, George Necula (U.C. Berkeley)
Global Value Numbering Using Random Interpretation OSQ Retreat, May 2003 Sumit Gulwani George Necula EECS Department University of California, Berkeley.
Chapter 1: An Overview of Computers and Programming Languages
Basic Algebra Grade: 9 th Gustavo Miranda LRC 320.
8.4 Logarithms p. 486.
Clustering Ram Akella Lecture 6 February 23, & 280I University of California Berkeley Silicon Valley Center/SC.
CS 326 A: Motion Planning Probabilistic Roadmaps Basic Techniques.
Copyright © 2010 Pearson Education, Inc. All rights reserved Sec
Gateway Quiz Reminders: The next Gateway will be given in class next week or the week after )check your course calendar.) Before then, each student who.
Business Forecasting Chapter 5 Forecasting with Smoothing Techniques.
Solving for x December 7, Solving for x When solving an equation, the goal is to get the variable by itself on one side of the equation. Inverse.
Photo-realistic Rendering and Global Illumination in Computer Graphics Spring 2012 Stochastic Radiosity K. H. Ko School of Mechatronics Gwangju Institute.
WordDefinitionExample Equation A mathematical statement that says two expressions are equal Inequality A mathematical statement that compares two expressions.
Algebraic Expressions
Logarithmic Functions
1 Decision Procedures for Linear Arithmetic Presented By Omer Katz 01/04/14 Based on slides by Ofer Strichman.
1 ECE-517 Reinforcement Learning in Artificial Intelligence Lecture 7: Finite Horizon MDPs, Dynamic Programming Dr. Itamar Arel College of Engineering.
Benk Erika Kelemen Zsolt
Chapter 7 Point Estimation
EECS 274 Computer Vision Segmentation by Clustering II.
For Monday Read chapter 4, section 1 No homework..
Bahman Bahmani Stanford University
Time-dependent Schrodinger Equation Numerical solution of the time-independent equation is straightforward constant energy solutions do not require us.
Importance Resampling for Global Illumination Justin F. Talbot Master’s Thesis Defense Brigham Young University Provo, UT.
3.2 Solving Equations by Using Addition and Subtraction Addition Property of Equality –If the same number is added to each side of an equation, the resulting.
Chapter 2 Copyright © 2015, 2011, 2007 Pearson Education, Inc. Chapter Copyright © 2015, 2011, 2007 Pearson Education, Inc. Chapter 2-1 Solving Linear.
2.5 Order of Operations Simplifying Expressions PEMDAS Parentheses, brackets, other groupings, starting with the inner most operations. Evaluate any expression.
Week 41 How to find estimators? There are two main methods for finding estimators: 1) Method of moments. 2) The method of Maximum likelihood. Sometimes.
OPERATING SYSTEMS CS 3530 Summer 2014 Systems and Models Chapter 03.
Random Interpretation Sumit Gulwani UC-Berkeley. 1 Program Analysis Applications in all aspects of software development, e.g. Program correctness Compiler.
Short Introduction to Particle Filtering by Arthur Pece [ follows my Introduction to Kalman filtering ]
Converting between log form and exponential form.
Gateway Quiz Reminders: The next Gateway will be given in class next week (check your course calendar.) Before then, each student who did not score 8/8.
2.4 Equations with Variables on Both Sides To solve an equation with variables on both sides, you must use the Addition or Subtraction Properties of Equality.
ROBOTICS 01PEEQW Basilio Bona DAUIN – Politecnico di Torino.
Data Mining CH6 Implementation: Real machine learning schemes(2) Reporter: H.C. Tsai.
1.3 Properties of Numbers 8/24/16. Common Core State Standards Interpret complicated expressions by viewing one or more of their parts as a single entity.
Properties of Logarithm
RankSQL: Query Algebra and Optimization for Relational Top-k Queries
Algorithms and Networks
Path Tracing (some material from University of Wisconsin)
6-3 Solving Systems Using Elimination
7. Two Random Variables In many experiments, the observations are expressible not as a single quantity, but as a family of quantities. For example to record.
Properties of Logarithms
Evaluating expressions and Properties of operations
Algorithms and Networks
Solving Polynomials by Factoring
7. Two Random Variables In many experiments, the observations are expressible not as a single quantity, but as a family of quantities. For example to record.
15th Scandinavian Workshop on Algorithm Theory
One step equations Chapter 2 Section 2.1.
7. Two Random Variables In many experiments, the observations are expressible not as a single quantity, but as a family of quantities. For example to record.
Reinforcement Learning (2)
Reinforcement Learning (2)
Presentation transcript:

Randomized Analysis with Repeated Conditionals for Affine Equalities Bor-Yuh Evan Chang CS263 Final Project December 4, 2002

Using Randomization Goal: Use randomized approaches to: obtain more complete analyses (i.e. discover more properties of programs) more efficient algorithms simpler to implement or understand Maintain soundness with very high probability My Contribution: Build on existing techniques for discovering affine equalities [Gulwani and Necula ’03] Obtain a more complete analysis with respect to repeated conditionals.

c = 1, d = 8 c = 1, d = 5 c = 19, d = 8 c = -8, d = 5 a = -3, b = -11 a := 1 b := 2 a := 1 b := 5 Problem Arbitrary conditionals c = 1 p, d – a  5 p Equivalent conditionals c = 1 p, d – a = 5 X c = 1 X, d – a = 5 X Same weights for equivalent conditionals c = 1 X, d – a = 5 p a := 0 b := 1 c := b - a d := 5 c := 1 d := 6 c = 1? d – a = 5? w 1 = 4 a = -3, b = -2 w 2 = -2 c = 1, d = 6 c1c1 c1c1 w 1 = 4 c = -35, d = 2

Problem Intuition: If w 1 is selected from {0, 1}, then we’re evaluating a specific path. w 1 2 = w 1 w 1 (1 – w 1 ) = 0 (1 – w 1 ) 2 = (1 – w 1 ) Naïve Solution: Don’t combine if “defined under” a “repeated” conditional. c = w 1 ¢ (w 1 ¢ 1 + (1 – w 1 ) ¢ 4) + (1 – w 1 ) ¢ 1 c = w 1 ¢ 1 + (1 – w 1 ) ¢ 4 a = w 1 ¢ 0 + (1 – w 1 ) ¢ 1, b = w 1 ¢ 1 + (1 – w 1 ) ¢ 5 a := 1 b := 5 a := 0 b := 1 c := b - ac := 1 c = 1? c = 1 c1c1 c1c1 c = w 1 2 ¢ 1 + w 1 (1 – w 1 ) ¢ 4 + (1 – w 1 ) ¢ 1

Fork-Join Programs Affine equations and fork-join programs “noise” terms occur from “defined with some conditional c” and then “used under some conditional c”

Randomized Interpreter where K = dom(V) and sample S is a collection of states

Example a – b – y = 0? weight(c 1 ) = 2, weight(c 2 ) = 4 p

Summary Avoids always performing an exponential analysis Should be sound with high probability as before Can be used incrementally Consider no conditionals repeated Add some conditionals that may be considered repeated

Future Work Implement and test on some examples Extend to non-fork-join programs Dependence between conditionals beyond equivalent conditionals Non-abstract conditionals Apply to handling memory operations???