diff options
author | Igor Pashev <pashev.igor@gmail.com> | 2022-08-28 15:40:21 +0200 |
---|---|---|
committer | Igor Pashev <pashev.igor@gmail.com> | 2022-09-25 20:23:05 +0200 |
commit | f0881305402f3dff56f99fcc4cbc8b615581b780 (patch) | |
tree | 5d475e2e95138f63ad249f4d44a453999c1c14f6 /README | |
download | mendeleev-f0881305402f3dff56f99fcc4cbc8b615581b780.tar.gz |
C, Haskell, Python, Fortran
Diffstat (limited to 'README')
-rw-r--r-- | README | 38 |
1 files changed, 38 insertions, 0 deletions
@@ -0,0 +1,38 @@ +Mendeleev — find chemical elements in words. + +For example, the word "Moscow" can be split in the following ways: + Mo S C O W, + Mo S Co W, + Mo Sc O W, +where: + Mo — Molybdenum, + S — Sulfur, + Sc — Scandium, + C — Carbon, + Co — Cobalt, + W — Wolfram (Tungsten). + +When a character cannot be found among the chemical elements, it's replaced +with a question mark: + language -> La N ? U Ag ? + +There are implementations in several programming languages. Each program +accepts words as arguments and prints all the possible combinations, +for example: + + $ ./mendeleev-c preprocessor + preprocessor: + P Re P ? O C Es S O ? + P Re P ? O Ce S S O ? + P Re Pr O C Es S O ? + P Re Pr O Ce S S O ? + Pr ? P ? O C Es S O ? + Pr ? P ? O Ce S S O ? + Pr ? Pr O C Es S O ? + Pr ? Pr O Ce S S O ? + +This software is Public Domain. See the LICENSE file for details. + +Dmitri Ivanovich Mendeleev (1834–1907) was a Russian chemist and inventor +known for formulating the Periodic Law. + |