Posts by Felipe Franco • 156 points
2 posts
-
9
votes3
answers419
viewsA: What are evolutionary algorithms?
They are algorithms applied to NP (complexity) problems. They are in the class of nondeterministic algorithms that better to say, has a search not necessarily for an optimal solution, but rather a…
-
5
votes2
answers618
viewsA: Compare Hash of two files in Python
To compare using hashlib can be done like this: import hashlib def open_txt(file): with open(file) as f: return "".join(f.read()) file_1 = 'a.txt' file_2 = 'b.txt' text_1 = open_txt(file_1) text_2 =…