Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
cs-312:project-7 [2015/04/07 18:55]
ringger [Appendix 2: Implementation Notes]
cs-312:project-7 [2015/04/07 18:55] (current)
ringger [Appendix 2: Implementation Notes]
Line 352: Line 352:
 == Appendix 2: Implementation Notes == == Appendix 2: Implementation Notes ==
  
-You'll probably need a constant to represent an unreachable vertex or unusable edge.  Your first inclination may be to choose -1 for this constant as a stand-in for Infinity. ​ However, when you go to use that value or compare against it, you may be thinking in terms of Infinity even though it is not.  A helpful alternative is a field from the <​tt>​Double</​tt>​ structure called ​<tt>[https://​msdn.microsoft.com/​en-us/​library/​system.double.positiveinfinity(v=vs.110).aspx PositiveInfinity]</tt>.+You'll probably need a constant to represent an unreachable vertex or unusable edge.  Your first inclination may be to choose -1 for this constant as a stand-in for Infinity. ​ However, when you go to use that value or compare against it, you may be thinking in terms of Infinity even though it is not.  A helpful alternative is a field from the <​tt>​Double</​tt>​ structure called [https://​msdn.microsoft.com/​en-us/​library/​system.double.positiveinfinity(v=vs.110).aspx PositiveInfinity].
  
  
cs-312/project-7.txt ยท Last modified: 2015/04/07 18:55 by ringger
Back to top
CC Attribution-Share Alike 4.0 International
chimeric.de = chi`s home Valid CSS Driven by DokuWiki do yourself a favour and use a real browser - get firefox!! Recent changes RSS feed Valid XHTML 1.0