Skip to content

Sierrasch/Bike-Sharing

Repository files navigation

Bike-Sharing

Variables:

  • days = d
  • halfDays = 2d
  • segments = k/2
  • nodes = n
  • totalBikes = b
  • maxMovement = m

Graph Size:

  • Start: adds n nodes

  • FreeCycle: adds 2n nodes, n^2 edges

  • CostCycle: adds n nodes, n^2 edges

  • End: adds 1 node, n edges

  • Number of FreeCycles = halfDays * segments

  • Number of CostCycles = halfDays

Total node size of graph = n + (k2dn) + (2dn) + 1 = n + (k+1)(2nd) + 1 ~= (k+1)(2n*d)

Scales linearly with all input parameters

Total edge size of graph = 0 + (k2dn^2) + (2dn^2) + n = n + (k+1)(2dn^2) ~= (k+1)(2d*n^2)

Edmund-Karp runs in VE^2, so time complexity should be = O( (k+1)^3 * (2nd) * (2dn^2)^2 )

=O(k^3 * d^3 * n^5)

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published