Title :
Dynamic structure modeling and simulation of the Eratosthenes Sieve for prime numbers
Author :
Barros, Fernando J.
Author_Institution :
Dept. de Engenharia Inf., Coimbra Univ., Portugal
Abstract :
Although in most of the modeling methodologies the structure of the models is viewed as time-invariant, dynamic structure models offers a better paradigm to represent certain type of systems. We describe the Dynamic Structure Discrete Event System Specification (DSDEVS) formalism and its implementation, the DELTA modeling and simulation environment. The DSDEVS formalism is used to model the Eratosthenes Sieve for prime numbers. The sieve is modeled in two different perspectives: iterative and recursive. These approaches are compared with respect to performance and model expressiveness. A variation of the iterative solution will be extended to find relatively prime numbers in a scrambled list, showing the generality of the DELTA system
Keywords :
discrete event simulation; DELTA modeling and simulation environment; DSDEVS; Dynamic Structure Discrete Event System Specification; Eratosthenes Sieve; iterative; iterative solution; prime numbers; recursive; Adaptive systems; Discrete event simulation; Discrete event systems; Fires; Iterative methods; Pipelines; Time varying systems;
Conference_Titel :
Simulation Symposium, 1997. Proceedings., 30th Annual
Conference_Location :
Atlanta, GA
Print_ISBN :
0-8186-7934-4
DOI :
10.1109/SIMSYM.1997.586547