Some XML-Space Examples
A number of examples of the use od xml-space are available on-line, source-code has also been included for the simpler cases.
- Example 1 - 'XML Ping Pong' - xml messages are passed backwards and forwards between two xml-space clients.
- Example 2 - A Monte-Carlo simulation to compute the (hyper-)volume of a hypersphere.
- Example 3 - Breaking the 'Enigma Code' by brute force using xml-space parallel processing.
- Example 4 - GAVONTS genetic optimisation - the creation of a 'lunar lander' control system algorithm.
- Example 5 - 'AJAX Primes' - Uses the processing power of connected web browsers to find prime numbers.
In This example a pair of 'ping' and 'pong' xml messages are repeatedly exchanged between two distributed
xml-space clients. Here, the xml-space 'command' documents are constructed explicitly in the example source-code.
In this example, xml messages are selected and extracted purely on the basis of their space-entry 'xtype'.
More ...
In this example, we compute the (hyper-)volume of an N-Dimensional hypersphere using parallel monte-carlo integration.
This is a simple example of an xml-space parallel processing simulation algorithm.
We compute hyper-volumes for 2, 3, 5, 10 and 20 dimensional (hyper-)spheres, and compare the results to values obtained
from direct analytical calculations.
More ...
This example shows how the xml-space can be used to solve a problem from classical cryptography - breaking the
'Enigma Code', by brute force, using parallel processing techniques.
This implementation uses a simple master-worker processing pattern - a 'master' inserts decrypt jobs into xml-space,
many workers then compute and assess possible 'decrypts' in parallel. The best decrypt candidates are ranked, and returned
the 'master'.
More ...
This example describes how we use xml-space to implement our
GAVONTS Technology
- Genetic Algorithm Vector Optimised Nonlinear Transformations.
This is a 'meta-model' for tackling a wide range of non-linear problems by using 'virtual-evolution'. We apply the
principles of natural selection and survival of the fittest to the creation of mathematical solutions to non-linear
problems.
GAVONTS is extremely computationally intensive, so to handle this computational burden, we use xml-space parallel
processing techniques.
More ...
This example illustrates the use of the AJAX xml-space connector, together with a technique that the author has dubbed the
'cyber-squirrel pattern'.
In this example, a script is embedded within a web page, which temporarily 'borrows' some of the processing power of any
connected web browsers, and uses them to search for prime numbers.
When the web page is opened by a browser, a javascript script is loaded and run by the browser. This script connects to
xml-space using AJAX and extracts a 'job', which is then run within the browser's local scripting environment. The results
are then returned to the xml-space, and stored.
More ...