Cuthill-Mckee Ordering Algorithm for
- Shobhit Chaurasia
25 August 2022 on Firenze room
Shobhit Chaurasia
Agenda
My Contributions
My Contributions
Benefits to the community
equations, reduce size needed to store sparse matrix, enhancing data locality, etc
Usage & Applications
pgRouting Cuthill-Mckee Ordering
pgRouting Cuthill-Mckee Ordering
CREATE TABLE edge_table
(
id BIGSERIAL,
source BIGINT,
target BIGINT,
cost FLOAT,
reverse_cost FLOAT
);
INSERT INTO edge_table
(id, source, target, cost, reverse_cost) VALUES
(1, 1, 4, 1, 1), (8, 3, 5, 1, 1),
(2, 1, 6, 1, 1), (9, 4, 6, 1, 1),
(3, 2, 3, 1, 1), (10, 4, 9, 1, 1),
(4, 2, 5, 1, 1), (11, 5, 7, 1, 1),
(5, 2, 7, 1, 1), (12, 6, 7, 1, 1),
(6, 2, 10, 1, 1), (13, 6, 8, 1, 1);
(7, 3, 4, 1, 1), (14, 7, 8, 1, 1);
pgRouting Cuthill-Mckee Ordering
Initial graph (Bandwidth = 8)
Final Graph (New bandwidth = 4)
SELECT * FROM pgr_cuthillMckeeOrdering (
'SELECT * FROM edge_table'
);
seq | node seq | node
---------+---------- ----------+----------
1 | 1 6 | 7
2 | 9 7 | 5
3 | 6 8 | 3
4 | 8 9 | 2
5 | 4 10 | 10
(10 rows)
pgRouting Cuthill-Mckee Ordering
Future Scope
What next?
Future Scope
Let’s Wrap Up!
Project:
Source Code:
Documentation:
Wiki Page:
https://github.com/pgRouting/GSoC-pgRouting
More Information
Website:
GitHub:
Documentation:
Developer’s Doc:
Workshop:
Shobhit Chaurasia: 000shobhitchaurasia@gmail.com
Thanks!