The pseudocode tag has no wiki summary.
1
vote
2answers
194 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?
-3
votes
0answers
71 views
Create A Pseudo Code out the Information [closed]
I have to create a pseudo code out of this information. I'm still a bit confused on what I am supposed to do. If you can help, I would really appreciate it. Here it is:
A mortgage lender requires ...
-4
votes
1answer
110 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
...
3
votes
1answer
163 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 ...
8
votes
3answers
274 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 ...
2
votes
4answers
504 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):
...
3
votes
2answers
141 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 ...
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 ...
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 ...
1
vote
3answers
233 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 ...
5
votes
1answer
409 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 ...
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 ...
1
vote
2answers
136 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
...
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 ...
5
votes
2answers
654 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 ...