I need to compute the diameter of an N-ary tree represented as a Binary Tree (left-child, right-sibling representation). Can someone give me an idea o ...
I need to compute the diameter of an N-ary tree represented as a Binary Tree (left-child, right-sibling representation). Can someone give me an idea o ...
As a part of the Greiner-Hormann algorithm for polygon-clipping (described here), there is this subroutine: In image form: And transcribed (attempt ...
Can anyone sorta ELi5 & help me understand how does this algorithm works? According to the answer, the value is 3. But I want to know the logic be ...
I know that the following pseudocode can be optimized by changing the order of the instructions, but I don't know how to go about it. The algorithm pe ...
Analog device provides instant result as you can see at this simplified picture. Is there known algorithm that solves the same problem when I have sim ...
I have an array of roughly one million sorted integers. I need to implement a program that works similar to the following: Input: Output: The li ...
I want to ask if i can return more than one value using function. when i make a function that is not necessarly returning one value like the swap func ...
I need some clarification about the concept of functions and procedures. I know some characteristics of each one, but I'm still not sure about one thi ...
Is there a way to reduce the number of prompts to one line of code, perhaps a prompt that allows for a multi-line input box when prompted in the forma ...
In one scenario, the problem is solved by making pseudocode or actual code that shows a connection between Humans, Devices, and Remote Control. I'm t ...
Need help fixing code. Example: when you type 123 it becomes 1 2 3. ...
I was searching for implementation of Karger's Algorithms and found this: Unlike other implementations I've seen online, this one doesn't involve a ...
I understand that the outer for loop runs for log n times. Need help in understanding the complexity of the inner loop and the overall. ...
I am learning how to use Pseudocode and have made a randomly generated 10 x 10 grid in python. I am trying to convert my python script into Pseudocode ...
I need to convert pseudocode into a merge sort algorithm that mirrors that pseudocode. I am new to pseudocode so I'm having trouble with this. Can any ...
please don't use formula Un = a + (n-1)b, use looping I tried to figure this out but i cannot find how to create pseudocode looping without formula ...
I need to print the following pattern using a single for-loop without if statements. I first tried to understand the logic and coded it using 2 for ...
I'm trying to write a function which wraps an input value within an input range (inclusive lower-bound, exclusive upper-bound), so that the output val ...
This is the pseudocode of A* from wiki (https://en.wikipedia.org/wiki/A*_search_algorithm): I was wondering if this algorithm is assuming that the ...
I'm following this pseudocode to write my code in Java. Everything is clear and works as expected except for actually capturing the best move. It seem ...