The pseudocode tag has no wiki summary.
18
votes
16answers
2k views
Should one use pseudocode before actual coding?
Pseudocode helps us understand tasks in a language-agnostic manner. Is it best practice or suggested approach to have pseudocode creation as part of the development lifecycle? For instance:
Identify ...
16
votes
8answers
2k views
What is Pseudocode?
I've seen a lot of mentions of Pseudocode lately, on this site and others. But I don't get it:
What is Pseudocode? For example, the Wikipedia article below says "It uses the structural conventions ...
12
votes
10answers
9k views
Difference between a pseudo code and algorithm?
Technically, Is there a difference between these two words or can we use them interchangeably? Both of them more or less describe the logical sequence of steps that follow in solving a problem. ain't ...
8
votes
3answers
278 views
Is there such a concept as “pseudo implementation” in software development?
I'm looking for a label to describe the practice of using human-based computation methods or other means of "faking" an algorithm for the sake of getting a product or demo off the ground quickly ...
8
votes
6answers
1k views
what's best platform for explaining pseudo-code to a developer who knows nothing about it?
I'm a scientific person needing to document complex Matlab code to hand to a developer for him/her to understand and program in a different language. In the past, I've used MS Word (explaining each ...
7
votes
8answers
2k views
When would I use pseudocode instead of flowchart?
I'm a student working with various techniques of programming, and I've come across pseudocode and flowchart. I know that these are both used in order to think through the problem before actually ...
5
votes
2answers
666 views
Fast algorithm for finding common elements of two sorted lists
Suppose I have two lists of N 3 by 3 vectors of integers.
I need to find a quick way (say of running time at most N^(1+epsilon)) to find the vectors of the first list that have the same 1st ...
5
votes
7answers
143 views
Can initial inefficient solutions INSPIRE better ones and thus lead to faster problem solving?
When faced with writing an algorithm to solve a small project/problem is it better to come up with pseudo code that isn't efficient/optimum but solves the problem and then try to use the inefficient ...
5
votes
1answer
424 views
Is there a standard pseudocode for parallel algorithms?
The common styles of pseudocode are largely intelligible, and it is more or less clear how to write pseudocode for sequential programs.
But if parallelism is not hidden behind a full library and is ...
3
votes
1answer
165 views
Loop invariant vs Assertions
I have an exam on Programming Concepts this Saturday and I am struggling to find some information to understand some concepts better.
What is the difference between loop invariant and assertion? To ...
3
votes
2answers
145 views
Why is design by contract considered an alternative to the pseudo programming process?
Right now I'm reading Code Complete by Steve McConnell and in chapter 9 he talks about the Pseudo Programming Process (PPP).
From what I've understood, the PPP is a way of programming in which the ...
2
votes
4answers
523 views
algorithm to print the digits in the correct order
I've been trying to write an algorithm that will print separately the digits from an integer. I have to write it in Pseudocode. I know how to write an algorithm that reverse the digits.
digi(n):
...
1
vote
2answers
200 views
What does “if w in [1..5, 8, 11]” mean in pseudo code?
In some pseudocode, I saw the following:
if w in [1..5,8,11]
Does it mean that if w is from 1 to 5 or 8 or 11? Or is it something else?
1
vote
3answers
236 views
Pseudocode for an echo using recursion
Using pseudocode, what would the code for an echo using recursion be?
UPDATE: Appears I should have been more clear. By echo I mean the pattern sound exhibits when it echos, not echo as in repeatly ...
1
vote
2answers
137 views
Clarification of pseudo random number generator
I am asked to create a pseudo-random number generator using the following algorithm:
The generator will generate every integer from 1 to N-1 exactly once
The algorithm for N=2^n
...
-4
votes
1answer
112 views
Opposite of Collatz Conjecture [closed]
How can I write (in pseudocode) a program that halts only if the Collatz Conjecture is
false ?
Here is pseudocode for the case that it is true:
function collatz(n)
while n > 1
show n
...