To diversify my knowledge of programming languages, a small group and I wrote an Ada program that parses a text file containing all of Marvel’s characters, collaborations, and comic books.
Ada was initially commissioned by the United States Department of Defense to become the primary programming language used by the government. Ada is highly structured and provides support for object oriented and concurrent programming. Also because Ada is strongly and statically typed, it works very well with embedded devices.
We developed an Ada program that performed some statistical analysis on the data such as most popular character, most collaborations with other characters, and mean collaborations. Here is a sample of our statistical output:
Number of vertices = 19428
Number of characters = 6486
Creating the vertex name vector and edge matrix.
Reading the vertex names.
Reading the edge matrix.
The number of characters is 6486.
The number of comic books is 12942.
The minimum comic books per character is 1 (24-HOUR MAN/EMMANUEL).
The maximum comic books per character is 1625 (SPIDER-MAN/PETER PAR).
The average comic books per character is 14.90.
The standard deviation of the comic books per character is 59.88.
The minimum characters per comic book is 1 (M/PRM 35).
The maximum characters per comic book is 111 (COC 1).
The average characters per comic book is 7.47.
The standard deviation of the characters per comic book is 6.30.
The total number of collaborations is 569770.
The total number of collaboration pairs is 168267.
The mean collaborations per character is 51.89.
Here is a Github repository with source code: