Table of Contents
- Background
- N Queens Revisited
- Perl Solution
- Python Solution
- Python vs. Perl: Walltime vs. Number of Queens
- Perl Profiling and Results
- Python Profiling
- Python Profiling Results
- Comparing Python to Perl
- Python vs. Perl: Walltime vs. Number of Solutions Tested
- The Winner: Perl for Small Problems, Python for Big Ones
- Sources
Background
Revisiting the N queens problem, this time implementing the solution in Python.
Verb-oriented solution, functional, and based on Perl solution
More fair comparison - both are interpreted languages, not compiled languages
Compare Python and Perl, ease of implementation, speed, flexibility
N Queens Problem
As a recap from the …