Tag Archive for 'map'

The geographic and temporal spread argument, part 19

(Part 18 is here.)

Any religious argument based on expertise in a language is necessarily unconvincing to someone who doesn’t already consider that language to be special or holy. Numerous languages have been asserted by various religions to have special or divine properties: Sanskrit, Pali, Chinese, Hebrew, Aramaic, Greek, Latin, Arabic, Tibetan, Persian, and even English. The question of linguistic competence is often brought up by religious apologists seeking to deflect issues raised by skeptics about problematic passages in their scriptures, but when good translations and linguistic resources are available, this is just a smokescreen. When there are errors in fact or reasoning in a translation, or instances of morally reprehensible behaviour, the problems are rarely made better by referring to the primary text in the original language… » [Expand post] [Permalink]

0 Comments

Programming exercise: permutations of a string

The problem is to implement a function that outputs all possible permutations of the characters in a string. Unlike combinations, two permutations are considered distinct if they contain the same characters, but in a different order. Also, for the purposes of this exercise, each occurrence of a repeated character is considered to be a distinct character. That is, if the input is “aaa”, the output should be six repetitions of “aaa”. The permutations may be output in any order.

This exercise, like the previous one on combinations of a string, is from the book Programming Interviews Exposed by John Mongan and Noah Suojanen[1]\(\)… » [Expand post] [Permalink]

0 Comments

Programming exercise: combinations of a string

The problem is to implement a function that outputs all possible combinations of the characters in a string (with length ranging from one to the length of the string). Unlike permutations, two combinations are considered to be the same if they contain the same characters, but in a different order. Another way to define the problem is to find the power set of the characters of the string (excluding the empty set).

Like the previous exercise, this one is also from the book Programming Interviews Exposed by John Mongan and Noah Suojanen[1]\(\)… » [Expand post] [Permalink]

2 Comments