From f0881305402f3dff56f99fcc4cbc8b615581b780 Mon Sep 17 00:00:00 2001 From: Igor Pashev Date: Sun, 28 Aug 2022 15:40:21 +0200 Subject: C, Haskell, Python, Fortran --- README | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 README (limited to 'README') diff --git a/README b/README new file mode 100644 index 0000000..2205d7c --- /dev/null +++ b/README @@ -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. + -- cgit v1.2.3