User:Realazthat/Notes/Containers: Difference between revisions

From Rosetta Code
Content added Content deleted
No edit summary
No edit summary
Line 16: Line 16:
** Adjacency matrix with O(n + m) init time, O(n^2) space, and O(1) lookup time
** Adjacency matrix with O(n + m) init time, O(n^2) space, and O(1) lookup time
**: http://garryowen.csis.ul.ie/~cs4115/resources/oth7.pdf
**: http://garryowen.csis.ul.ie/~cs4115/resources/oth7.pdf
** "Develop a technique to initialize an entry of a matrix to zero the first time it is accessed, thereby eliminating the O(||V||2) time to initialize an adjacency matrix."
** "Develop a technique to initialize an entry of a matrix to zero the first time it is accessed, thereby eliminating the O(|V|^2) time to initialize an adjacency matrix."
**: http://research.swtch.com/2008/03/using-uninitialized-memory-for-fun-and.html
**: http://research.swtch.com/2008/03/using-uninitialized-memory-for-fun-and.html

Revision as of 20:11, 21 January 2011