pseudocode
Optimizing queries for the next and previous element
I am looking for the best way to retrieve the next and previous records of a record without running a full query. I have a fully implemented solution in place, and would like to know whether there are[详细]
2022-12-20 17:49 分类:问答In a triangulated isometric grid, what triangle is a given point in?
I have a triangulated isometric grid, like this: (source: mathforum.org) In my code, triangles are grouped by columns.[详细]
2022-12-19 23:55 分类:问答Representing code algebraically
I have a number of small algorithms that I would like to write up in a paper. They are relatively short, and concise. However, instead of writing them in pseudo-code (à la Cormen or even Knuth), I wo[详细]
2022-12-18 22:55 分类:问答Does anyone design api or library code in this way?
I was reading up some things about how to design a library or API well, and stumbled across Joshua Bloch\'s great talk at Google Tech Talks. Now although I am nowhere near a professional API developer[详细]
2022-12-17 16:33 分类:问答Pseudo codestructure to Mysql?
Can somebody help get the following pseudocode in mysql? The resulting selects in the IF statement all return the same columns (4) and multiple rows (unknown)开发者_StackOverflow中文版 so that\'s not[详细]
2022-12-17 04:59 分类:问答Assembler Language Programming
I am trying to write a program that inputs a positive number less than 10 and outputs the sum of the first numbers. For example 5 would be 5+4+3+2+1. The commands are Stop, Load, Store, Add, Sum, Mult[详细]
2022-12-16 05:55 分类:问答Explain this DSP notation
I\'m trying to implement this extenstion of the Karplus-Strong plucked string algorithm, but I don\'t understand the notation there used. Maybe it will take years of study, but maybe it won\'t - maybe[详细]
2022-12-14 17:40 分类:问答What is the correct way to convert from a for loop to a while loop?
I have a for loop of the form: for (int i = from; i < to; i++) { // do some code (I don\'t know exactly what, it is subject to change)[详细]
2022-12-10 22:45 分类:问答Convert Array of Decimal Digits to an Array of Binary Digits
This is probably a quite exotic question. My Problem is as follows: The TI 83+ graphing calculator allows you to program on it us开发者_StackOverflowing either Assembly and a link cable to a compute[详细]
2022-12-10 19:06 分类:问答transitive reduction algorithm: pseudocode?
I have been looking for an algorithm to perform a transitive reduction on a graph, but without success. There\'s nothing in my algorithms bible (Introduction To Algorithms by Cormen et al) and whilst[详细]
2022-12-10 14:25 分类:问答