Top "Pseudocode" questions

Pseudocode is a compact and informal high-level description of a computer programming algorithm.

How to find the units digit of a certain power in a simplest way

How to find out the units digit of a certain number (e.g. 3 power 2011). What logic should I use to …

algorithm math language-agnostic pseudocode
Checking to see if 3 points are on the same line

I want to know a piece of a code which can actually tell me if 3 points in a 2D space …

pseudocode
Create sine lookup table in C++

How can I rewrite the following pseudocode in C++? real array sine_table[-1000..1000] for x from -1000 to 1000 sine_…

c++ lookup pseudocode trigonometry
How does `Skipcond` work in the MARIE assembly language?

I am trying to understand the MARIE assembly language. I don't quite understand skipcond for doing things like <, or &…

assembly pseudocode marie
Algorithm to find which number in a list sum up to a certain number

I have a list of numbers. I also have a certain sum. The sum is made from a few numbers …

python algorithm math pseudocode
SHA 256 pseuedocode?

I've been trying to work out how SHA-256 works. One thing I've been doing for other algorithms is I've worked …

cryptography pseudocode sha sha256
What are the mathematical/computational principles behind this game?

My kids have this fun game called Spot It! The game constraints (as best I can describe) are: It is …

algorithm math pseudocode
How to generate n different colors for any natural number n?

Say n = 100; How do I generate 100 visually distinct colors? Is this mathematically possible?

algorithm colors pseudocode perception
Check which side of a plane points are on

I'm trying to take an array of 3D points and a plane and divide the points up into 2 arrays based …

math 3d pseudocode
Algorithm for sampling without replacement?

I am trying to test the likelihood that a particular clustering of data has occurred by chance. A robust way …

algorithm statistics pseudocode