Skip to content

Instantly share code, notes, and snippets.

View jwthomp's full-sized avatar

Jeff Thompson jwthomp

View GitHub Profile
@jwthomp
jwthomp / ishamel.erl
Created April 5, 2011 15:10
Erlang implemention to solve ishmael problem
% solving Ishmael problem from http://www.renesys.com/challenge_site/challenge/count_me_ishmael
-module(ishmael).
-compile(export_all).
-define(FILENAME, "2701.txt").
time(Func) ->
Start = now(),
; solving Ishmael problem from http://www.renesys.com/challenge_site/challenge/count_me_ishmael
; NOTE: The times below are inflated since the profiling code slows everything down
; Current profile
; seconds | consed | calls | sec/call | name
;--------------------------------------------------------------
; 0.391 | 33,214,464 | 952,404 | 0.0000004 | IS-CVVC
; 0.214 | 30,027,776 | 664,719 | 0.0000003 | IS-CHAR-CONSTANANT
; 0.156 | 0 | 2,308,632 | 0.0000001 | IS-CHAR-VOWEL