Open main menu
Home
Random
Recent changes
Special pages
Community portal
Preferences
About Wikipedia
Disclaimers
Incubator escapee wiki
Search
User menu
Talk
Dark mode
Contributions
Create account
Log in
Editing
Persistent data structure
(section)
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
===CHANGE-EDGE=== If we assume that CHANGE-EDGE({{mvar|v}}, {{mvar|i}}, {{mvar|u}}) is called, then there are two cases to consider. * There is an empty row in the table of the vertex {{mvar|v}}: In this case we copy the last row in the table and we change the {{ord|{{mvar|i}}}} edge of vertex {{mvar|v}} to point to the new vertex {{mvar|u}} * Table of the vertex {{mvar|v}} is full: In this case we need to create a new table. We copy the last row of the old table into the new table. We need to loop in the array inedges({{mvar|v}}) in order to let each vertex in the array point to the new table created. In addition to that, we need to change the entry {{mvar|v}} in the inedges(w) for every vertex {{mvar|w}} such that edge {{mvar|v,w}} exists in the graph {{mvar|G}}.
Edit summary
(Briefly describe your changes)
By publishing changes, you agree to the
Terms of Use
, and you irrevocably agree to release your contribution under the
CC BY-SA 4.0 License
and the
GFDL
. You agree that a hyperlink or URL is sufficient attribution under the Creative Commons license.
Cancel
Editing help
(opens in new window)