|
Reversible sort algorithm I need a reversible sort algorithm. Let�s say there are 40 numbers (0..255). The job is to sort these numbers in ascending order and by doing this also save the sort-information for reversing the process later, ie. "unsorting" it back to the original order (but this will usually be done by another client) The ... 5 Sep 2008 03:23
Speculation about Dijkstra's primitives and how small each functionshould be Robert Maas, http://tinyurl.com/uh3t wrote: Dijkstra took function calls (including passing parameters to called function and collecting return values) for granted, treating each as an atomic action, and then said that a newly defined function must combine these atomic actions in only three ways: - Seque... 18 Aug 2008 13:36
Code timing Hi folks! I wrote the C++ program at the end of this post to get an idea of the relative speeds of various mathematical operations. Now I'm wondering about two features of the results. Here's an example output from an Athlon 800 machine: | Timing 2000 runs of 1000 calls | | div : 0.39 s 0.000195 m... 20 Aug 2008 10:47
constructing cyclic gray codes Hello. I'm trying to construct all cyclic gray codes of length n. I've checked the wikipedia article, but I couldn't find a concise explanation how to do it, so I've simply created a recursive procedure (python) for the specified task : === rez = [] N = 5 def gen_codes(vis, cur_code, remain_code) : i... 20 Aug 2008 22:08
pipe question. re-post from comp.unix.programmer. On Aug 17, 6:25 pm, Chad <cdal...(a)gmail.com> wrote: On page 502 in the book "Advanced Programming in the Unix Environment" by Stevens and Rago, they have a the following function to help sychronize the parent and child. static int pfd1[2] , pfd2[2]; void TELL_PARENT(pid_t pid) { if ... 17 Aug 2008 22:16
pipe question. re-post from comp.unix.programming. On page 502 in the book "Advanced Programming in the Unix Environment" by Stevens and Rago, they have a the following function to help sychronize the parent and child. static int pfd1[2] , pfd2[2]; void TELL_PARENT(pid_t pid) { if (write(pfd2[1], "c", 1) != 1) err_sys("write error"); } W... 18 Aug 2008 15:40
Batch file - Count number if instances program is open? In a batch file is it possible to count the number of instances a program is open? For example, how can you count how many times Internet Explorer is open? Thanks ... 17 Aug 2008 23:17
ANN: Seed7 Release 2008-08-17 Hello, I have released a new version of Seed7: seed7_05_20080817.tgz In the Seed7 programming language new statements and operators can be declared easily. Types are first class objects and therefore templates/generics need no special syntax. Object orientation is used when it brings advantages and not in plac... 17 Aug 2008 17:09
Batch file for loop Can someone please tell me how to make a simple batch file that does the following: Opens internet explorer Waits 5 seconds Loops through (repeats) the above two steps 5 times. Thank you. ... 17 Aug 2008 15:06
Whats the best language to learn... What's the best language to learn as a beginner, for someone like I who has never programmed in any language before? I'm interested in learning python or c++, which would you say is the least complicated? ... 29 Sep 2008 02:42 |