Giter Site home page Giter Site logo

diffbm's Introduction

Difference Bound Matrices

Difference Bound Matrices are a data structure that are used to represent certain kinds of convex-polygons called Zones.

Suppose $m \in \mathbb{N}$. Then, a Zone $Z$ is a subset of $\mathbb{R}^m$ that lies in the intersection of constraints like these:

  • $\forall x \in Z, c_i \prec \pi_i(x) \prec d_i$
  • $\forall x \in Z, c_{ij} \prec \pi_i(x) \prec \pi_j(x) + d_{ij}$

where $\pi_{i}$ is a projection, and $\prec$ is either $\leq$ or $<$, and $c_i, d_i, c_{ij}, d_{ij} \in \mathbb{R}$.

A zone can be represented as a Difference Bound Matrix (DBM) $M$ of size $m + 1 \times m + 1$ where $M_{ij} = (\prec, c_{ij})$.

These data structures occur in the context of Timed Automata, where reachable sets of clock valuations are usually a (finite) union of zones.

Some common queries on DBMs are:

  • Checking if a point is in the zone
  • Checking if a zone is (non)empty
  • Checking if a zone satisfies a guard (normally of the form, $\forall x \in Z, \pi_i(x) \prec d_i$)
  • Checking if $Z_1 \subseteq Z_2$

Some common operations on DBMs are:

  • Constraining via a new guard
  • Taking the intersection of two zones
  • Letting time elapse, i.e, removing the upper bounds $\pi_i(x) \prec d_i$
  • Resetting, i.e, forcing the constraint $\pi_i(x) = k_i$

Other implementations:

Some resources:

diffbm's People

Contributors

agnishom avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.