5,108 research outputs found
Graph Algorithm Animation with Grrr
We discuss geometric positioning, highlighting of visited nodes and user defined highlighting that form the algorithm animation facilities in the Grrr graph rewriting programming language. The main purpose of animation was initially for the debugging and profiling of Grrr code, but recently it has been extended for the purpose of teaching algorithms to undergraduate students. The animation is restricted to graph based algorithms such as graph drawing, list manipulation or more traditional graph theory. The visual nature of the Grrr system allows much animation to be gained for free, with no extra user effort beyond the coding of the algorithm, but we also discuss user defined animations, where custom algorithm visualisations can be explicitly defined for teaching and demonstration purposes
A Game-theoretic Formulation of the Homogeneous Self-Reconfiguration Problem
In this paper we formulate the homogeneous two- and three-dimensional
self-reconfiguration problem over discrete grids as a constrained potential
game. We develop a game-theoretic learning algorithm based on the
Metropolis-Hastings algorithm that solves the self-reconfiguration problem in a
globally optimal fashion. Both a centralized and a fully distributed algorithm
are presented and we show that the only stochastically stable state is the
potential function maximizer, i.e. the desired target configuration. These
algorithms compute transition probabilities in such a way that even though each
agent acts in a self-interested way, the overall collective goal of
self-reconfiguration is achieved. Simulation results confirm the feasibility of
our approach and show convergence to desired target configurations.Comment: 8 pages, 5 figures, 2 algorithm
Geometric representations for minimalist grammars
We reformulate minimalist grammars as partial functions on term algebras for
strings and trees. Using filler/role bindings and tensor product
representations, we construct homomorphisms for these data structures into
geometric vector spaces. We prove that the structure-building functions as well
as simple processors for minimalist languages can be realized by piecewise
linear operators in representation space. We also propose harmony, i.e. the
distance of an intermediate processing step from the final well-formed state in
representation space, as a measure of processing complexity. Finally, we
illustrate our findings by means of two particular arithmetic and fractal
representations.Comment: 43 pages, 4 figure
- âŠ