From 39fbcd536fe8e8ef9fd5ef2ebd00117c6b727efe Mon Sep 17 00:00:00 2001 From: Cody Boone Ferguson <53008573+xexyl@users.noreply.github.com> Date: Sat, 15 Apr 2023 04:40:49 -0700 Subject: [PATCH] Perform colectomy on 2011/borsanyi :-) Remove colons :-) that were not needed as per discussion on GitHub. Other formatting fixes and maybe typo fixes. --- 2011/borsanyi/README.md | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/2011/borsanyi/README.md b/2011/borsanyi/README.md index 5d83e1b17..52cf51fc9 100644 --- a/2011/borsanyi/README.md +++ b/2011/borsanyi/README.md @@ -1,11 +1,11 @@ # Best data utility - Szabolcs Borsanyi - Theoretische Physik - Gaussstraße 20 - 42097 Wuppertal - Germany - +Szabolcs Borsanyi +Theoretische Physik +Gaussstraße 20 +42097 Wuppertal +Germany + ## To build: @@ -39,7 +39,7 @@ by editing the source. Try to find them! If you look at the source you will notice that the usual array of histogram bins is missing. The source contains no arrays and it does not -use malloc or alloca. How does it build the histogram? +use `malloc(3)` or `alloca(3)`. How does it build the histogram? While the input does not need to be sorted, the histogram output is sorted. How does it put the data into buckets? Why does it fork 22 times? @@ -52,20 +52,20 @@ histogram. I am all too often logged in to a remote machine with slow X connection, and a terminal-based program would be of great help. -### Limitations: +### Limitations * I optimized the output for the data I had around, you might want to adjust for your needs. For a great excess of data points the program will crash (depending on the available stack). * Giving too few (distinct) points can also cause crash (or division by zero). * The program expects plain numbers separated by white spaces. -* ASCII is assumed. -* Some POSIX-like system is assumed (fork and wait(NULL) are used) +* ASCII is assumed. +* Some POSIX-like system is assumed (`fork()` and `wait(NULL)` are used). * Do not give any arguments to the program. * Could rounding errors cause the omission of the highest bin? There might be empty bins at the edges. -### Obfuscation: +### Obfuscation * The program follows a rather unconventional approach to the task of histogram building. The usual array of integers (for the histogram