WD - mattrighetti/leiserson-retiming GitHub Wiki

Implementation

Given a synchronous circuit graph_prop,this algorithm computes wuv and duv for all uvinV such that u is connected to v in G.

  1. Weight each edge pair_arrow in E with the ordered pair pair
  2. Using the weighting from step 1, compute the weight of the shortest path joining each connected pair of vertices by solving an all-pairs shortest-paths algorithm (Floyd-Warshall performs best in dense graphs)
  3. For each shortest-path weight pair2 between two vertices u and v, set formula1 and formula2

See in code

Time complexity

time_complexity

⚠️ **GitHub.com Fallback** ⚠️