This shows you the differences between two versions of the page.
| can_a_context_have_state [2014/01/19 23:50] gazoot created | can_a_context_have_state [2014/01/26 21:05] (current) jcoplien | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| ====== Can a Context have state? ====== | ====== Can a Context have state? ====== | ||
| - | It can. The [[http://fulloo.info/Examples/RubyExamples/Dijkstra/|Dijkstra example]] is a good example of such a supporting data structure. There are some per-node data that are germane only to the algorithm but rarely to the domains of node-ness, or of any particular kind of node, in their own right. The data is factored out into the Context. | + | It can. The [[http://fulloo.info/Examples/RubyExamples/Dijkstra/|Dijkstra example]] is a good example of such a supporting data structure. | 
| + | //Nodes// are one kind of object in the Dijkstra algorithm. | ||
| + | There are some per-node data that are germane only to the algorithm but rarely to the domains of node-ness, or of any particular kind of node, in their own right. The data is factored out into the Context. | ||