Skip to content

CollectiveLearning/SearchingVowels

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

73 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Problem

How many vowels are in a text? This is our problem, but the main goal is learn how to use threads in ruby, so, we need to design a solution to find the number of words in a very long text in two ways

  1. Sequential
  2. Threads

Plase use the file "text.txt" for your solution, copy it in your solution folder.

Output

You must write the vowels count and for performance purpose, please add the execution time.

Sequential Search
{"a"=>4049408, "e"=>6050373, "i"=>3550018, "o"=>4236236, "u"=>1487946}
run in 19.486149 seconds
Parallel Search
{"a"=>4049408, "e"=>6050373, "i"=>3550018, "o"=>4236236, "u"=>1487946}
run in 11.334201 seconds

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages