Jump to content

Talk:Programming by permutation

Page contents not supported in other languages.
From Wikipedia, the free encyclopedia

2GB Input String

[edit]

"If the input string is longer than INT_MAX..."

...then you have much bigger problems than undefined behaviour of strlen(). 142.59.175.105 (talk) 14:25, 4 October 2008 (UTC)[reply]

Indeed, the errors remaining are not necessaryly errors per se, more like design criteria. The bug in the code was clearly to do with the increment, its discovery by permuting the deletion of one of the increments is an example of this programming style, but the remaining 'bugs' may not be bugs at all. Of the four remaining errors listed: concatenation may be a desired behaviour negating the first point, bounds checking is often skipped if the input has already been validated negating points two and three, and the fourth point is invalid if the input is restricted to 7-bit ASCII. Of all these, only the isdigit is really a potential issue with the snippet of code, as it does have undefined behaviour for negative numbers. The rest are situational and are not bugs by themselves, only potential sources of bugs. Nazlfrag (talk) 10:37, 21 November 2008 (UTC)[reply]

Permutations are not Perturbations

[edit]
iteratively making small changes (permutations)

I think there is a linguistic confusion here

permutations : testing with all possible values

perturbations : testing the effect of small changes

--87.194.174.252 (talk) 16:09, 13 March 2009 (UTC)[reply]