Minor fixes in 2020/kurdyukov4

The Makefile referenced a URL that no longer is valid (or less valid?).

The README.md referred to shakespeare.txt but the file (extracted from
the file downloaded from the curl invocation in the Makefile) is
Shakespeare.txt (in some places it was capitalised).

There were some formatting fixes in the README.md file too.

There is a .gitignore added but not in this commit - an upcoming commit.
It has the two files in that gzip file added but since it also had other
files I've kept it for a separate commit. A question of whether the
files should just be part of the entry is another to maybe consider but
for now it's not.
This commit is contained in:
Cody Boone Ferguson committed 2023-02-19 07:54:47 -08:00
1 parent 895b1f67c1
commit ef3d85978b
2 files changed
+43 -39

No files matched your search

+1 -1
View File
@@ -440,7 +440,7 @@ alt: ${ALT_TARGET}
data: ${DATA} data: ${DATA}
${DATA}: ${DATA}:
${CURL} -o $@.gz http://ioccc.org/2019/mills/$@.gz && ${GUNZIP} $@.gz ${CURL} -o $@.gz https://www.ioccc.org/2019/mills/$@.gz && ${GUNZIP} $@.gz
############### ###############
# utility rules # utility rules
+42 -38
View File
@@ -23,8 +23,9 @@ The code for this entry can be found in prog.c
./prog Eugene_Onegin.txt 2000 10 1 ./prog Eugene_Onegin.txt 2000 10 1
# For those not knowing Russian, just to see how the UTF-8 characters are handled # For those not knowing Russian, just to see how the UTF-8 characters are handled
(*Performance depends on the number of same hashes found.* *Performance depends on the number of same hashes found.
*Too many identical strings if the context length is small. author*) Too many identical strings if the context length is small.
-- Author*
### Selected Judges Remarks: ### Selected Judges Remarks:
@@ -32,18 +33,19 @@ We were able to write our own program performing the same trick
using the (still non-standard, for some reason) library function `memmem`, using the (still non-standard, for some reason) library function `memmem`,
but that way it works too fast regardless of the context length, and it's much less fun. but that way it works too fast regardless of the context length, and it's much less fun.
(*Wow, amazing! Very fast, but there is a drawback to randomness.* *Wow, amazing! Very fast, but there is a drawback to randomness.
*If some string only appears after half the input, the first instance* If some string only appears after half the input, the first instance
*of this string will have a 50% chance of occurrence.* of this string will have a 50% chance of occurrence.
*Example:* Example:*
echo "00000000000000000000 01 02 02 02 02 02 02" > test.txt echo "00000000000000000000 01 02 02 02 02 02 02" > test.txt
./prog test.txt 1000 2 123 ./prog test.txt 1000 2 123
# more twos in output # more twos in output
./rand test.txt 1000 2 123 ./rand test.txt 1000 2 123
# more ones in output # more ones in output
*But this will happen very rarely on real data. author*) *But this will happen very rarely on real data.
-- Author*
Try using the same random seed and varying the context size. Try using the same random seed and varying the context size.
@@ -74,32 +76,34 @@ Randomness and performance depend inversely on this parameter and the size of th
You can try this with the inputs provided with `2019/mills` from the IOCCC winners. You can try this with the inputs provided with `2019/mills` from the IOCCC winners.
$ ./prog shakespeare.txt 2001 10 12345
r sons, wives for them, as the hope I had it. This is the way they be not too ra $ ./prog Shakespeare.txt 2001 10 12345
sh a trial of you only. Therefore will not out of door? Nurse: Marry, bachelor, r sons, wives for them, as the hope I had it. This is the way they be not too ra
Have other some, he is in Rome: but where is Warwick frowns at his. PRINCE EDWAR sh a trial of you only. Therefore will not out of door? Nurse: Marry, bachelor,
D: Where is the light: But I will watch thy waking, what work he makes Amongst y Have other some, he is in Rome: but where is Warwick frowns at his. PRINCE EDWAR
ou? Come, sirs, We shall write to you, fortune and The hazard of much blood. I w D: Where is the light: But I will watch thy waking, what work he makes Amongst y
ould to heaven, respective lenity, And fire-eyed fury be my convoy in the senten ou? Come, sirs, We shall write to you, fortune and The hazard of much blood. I w
ced; 'tis too horrible, so bloody on the banks If they were created, Would bring ould to heaven, respective lenity, And fire-eyed fury be my convoy in the senten
them to our presence? FLORIZEL: And those his golden crown, What is six winters ced; 'tis too horrible, so bloody on the banks If they were created, Would bring
? they are but Lewis and Warwick bids you come too late come from the king's fri them to our presence? FLORIZEL: And those his golden crown, What is six winters
end, and will do't; for, look you, sir, For still thy true servitor: I will rend ? they are but Lewis and Warwick bids you come too late come from the king's fri
an oak And peg thee in his knotty entrails till Thou hast hazel eyes: what eye end, and will do't; for, look you, sir, For still thy true servitor: I will rend
but such an eye would spy out such a day to-morrow, or next day: He is within th an oak And peg thee in his knotty entrails till Thou hast hazel eyes: what eye
e limit of the like, forsworn to love, Send her a story of more woe Than this is but such an eye would spy out such a day to-morrow, or next day: He is within th
a merry ballad, but a very pretty one. MOPSA: Thou hast amazed me, My name is E e limit of the like, forsworn to love, Send her a story of more woe Than this is
lbow: I do lean upon, Now thou art: Thy tears are womanish; thy wild acts denote a merry ballad, but a very pretty one. MOPSA: Thou hast amazed me, My name is E
The unreasonably: come, you must: and there, I then do't to them? VOLUMNIA: Now lbow: I do lean upon, Now thou art: Thy tears are womanish; thy wild acts denote
the red pestilence hangs in our aim, which is yours. What is't your honour, as The unreasonably: come, you must: and there, I then do't to them? VOLUMNIA: Now
in war, since then, You have said before: My child is dead; or 'twere not 'long the red pestilence hangs in our aim, which is yours. What is't your honour, as
of him; but he, like you, lads; about your ears it is Menenius? Second Officer: in war, since then, You have said before: My child is dead; or 'twere not 'long
Come, come, young wanton and effeminate boy, Takes on the hungry beach Fillip th of him; but he, like you, lads; about your ears it is Menenius? Second Officer:
e stars Shall bitterly begin his wooing that we have in hand are angry And frown Come, come, young wanton and effeminate boy, Takes on the hungry beach Fillip th
ing brow to brow, ourselves, Still your own affections are devised, As blanks, b e stars Shall bitterly begin his wooing that we have in hand are angry And frown
enevolences, and I thank thee for it. KING HENRY VI: Master lieutenant comes. Ma ing brow to brow, ourselves, Still your own affections are devised, As blanks, b
ster lieutenant comes. Master lieutenant, pray you,-- CORIOLANUS: What's that to enevolences, and I thank thee for it. KING HENRY VI: Master lieutenant comes. Ma
him? CHRISTOPHER: At Pembroke, Sir James Blunt, And Rice ap Thomas with a virtu ster lieutenant comes. Master lieutenant, pray you,-- CORIOLANUS: What's that to
him? CHRISTOPHER: At Pembroke, Sir James Blunt, And Rice ap Thomas with a virtu
----------------------------------------------------------------------------------------------------- -----------------------------------------------------------------------------------------------------
(c) Copyright 1984-2020, [Leo Broukhis, Simon Cooper, Landon Curt Noll][judges] - All rights reserved (c) Copyright 1984-2020, [Leo Broukhis, Simon Cooper, Landon Curt Noll][judges] - All rights reserved