Skip to main content

Questions tagged [pseudocode]

0 votes
1 answer
99 views

How to convert Hyperoperation from recursion to iteration?

I’ve been exploring the hyperoperation sequence, which is typically defined recursively. According to the same source, hyperoperations can be expressed using iteration, but the examples still appear ...
Muhammad Ikhwan Perwira's user avatar
2 votes
0 answers
94 views

How does quantum computing pseudocode look like?

In classical programming, pseudocode follows some informal but widely understood standards, focusing on clarity and abstraction while omitting low-level implementation details. However, quantum ...
Muhammad Ikhwan Perwira's user avatar
1 vote
1 answer
65 views

What is the term for changing one or more line/s in a document?

I need to change one or more line/s in a document, as in the following pseudocode. If document.txt contains: A D Then change line 2 to ...
hello_y'all's user avatar
0 votes
1 answer
1k views

Parallel Algorithm Pseudocode: Helman-JaJa Listrank

What would Helman-JaJa listrank pseudocode be like? I tried looking around but all I found were "prosecode" descriptions (eg pp. 18-19 here) which I find kinda hard to follow.
jon doyle's user avatar
2 votes
1 answer
338 views

Declaring a JavaScript object in pseudocode

What's the proper way to declare an object in pseudocode. For example: const car = {type:"Fiat", model:"500", color:"white"}; Would ...
waldo 's user avatar
  • 21
27 votes
6 answers
7k views

Is there a "Standard Algorithm" language, as used in academic papers?

In many academic papers algorithms are described. They seem to use similar "syntax". Is there a standard for this language? If I want to describe an algorithm, would I improvise my ...
Makketronix's user avatar
0 votes
0 answers
88 views

As level computer science paper 2 question

Could someone help explain the logic of the ms . The question is The RandomChar() module is to be modified so that alphabetic characters are generated twice as often as numeric characters. Describe ...
Nathania's user avatar
0 votes
3 answers
225 views

How to write recursive function in pseudocode for this number $a_n=n!+2^n$

I need to write recursive function in pseudocode for n-th number term of $a_n=n!+2^n$. Whole code should be contained in one function with $n$ as function argument.
DScounterGO's user avatar
1 vote
1 answer
219 views

How can I convert the pseudo-code that solves maximum subarray problem to Python code?

I'm reading Algorithm Design and Application, by Michael T. Goodrich and Robert Tamassia, and sometimes the pseudo-code in this book doesn't make sense at all. At chapter one they show us 3 solutions ...
André Carvalho's user avatar
0 votes
0 answers
177 views

What does this mean for i from 1 to n in psuedocode?

I am enrolled in the Algorithmic Toolbox course on Coursera, and as apart of the first week that are walking us through how to implement algorithms. But I am having trouble understanding the symbol ...
Jermaine Tucker's user avatar
1 vote
1 answer
207 views

A* pseudocode problem

What is the difference between this two pseudocode and which one should i implement? ...
matthews24's user avatar
1 vote
0 answers
85 views

First piece of code in scientific papers

What is the first/oldest piece of source code shown in an scientific paper or journal? I am looking for source code of assembly or a high level programming language which was real (implemented) and ...
Peter Kofler's user avatar
-1 votes
3 answers
4k views

What is a pseudocode of try-catch?

What is a pseudocode of try-catch? Is it this? **Try** SOMETHING If you succeed Do nothing special Else, if you didn't succeed Do what's described in the **Catch** block Anyway, either if ...
alistro's user avatar
  • 11
0 votes
1 answer
518 views

What would be a pseudocode of try-catch pattern, common in generally all programming languages?

What would be a pseudocode of try-catch pattern, common in generally all programming languages? Perhaps the following? ...
codinglover's user avatar
2 votes
2 answers
363 views

Algorithm that will find the minimum number of steps to get from state $j$ to state $i$

Consider an adjacency matrix $A$ with elements $[A]_{ij}=1$ if one can reach state $i$ from state $j$ in one timestep, and $0$ otherwise. The matrix $[A^k]_{ij}$ represents the number of paths that ...
Slim Shady's user avatar

15 30 50 per page