- First day as a TA at Coding Dojo
- Worked up through the automated testing portion of the Django official tutorial
- Didn't have time to do any algorithms -- learned about a path-finding problem (2D array represents connections between nodes -- determine whether there is a path from A to B for arbitrary A and B)
- e.g. for nodes A, B, and C
- [ [0, 1, 0] , [0 , 0, 1], [0, 0, 0] ]
- First entry says A is connected to B, second that B is connected to C -- so there's a path from A to C.
- The connection relationship is not robust. A can be connected to B without B being connected to A. It must however in some sense give rise to another relationship that is at least transitive. If A and B are connected, and B and C are connected, then I can get from A to C. This does not mean, however, that I can get back from C to A.
- Initial thought was do something with recursion. Too complicated. And what if you have loops? Now it seems you just need a way to translate this information into a more manageable data structure -- for example the dynamic connectivity data structure.
The apps I'm going to be analyzing are part of Dr. Charles Severance's MOOC on Python and Databases and work together according to the following structure (which applies both in this specific case and more generally to any application that creates and interprets a database using online data). The data source, in this case, is Google's Google Maps Geocoding API. The "package" has two components: geoload.py and geodump.py . geoload.py reads a list of locations from a file -- addresses for which we would like geographical information -- requests information about them from Google, and stores the information on a database ( geodata.db ). geodump.py reads and parses data from the database in JSON, then loads that into a javascript file. The javascript is then used to create a web page on which the data is visualized as a series of points on the world-map. Dr. Severance's course focuses on Python, so I'm only going to work my way through ...
Comments
Post a Comment