Questions tagged as 'algoritmo'

1
answer

How do I show quicksort randomized step by step?

How do I show the ordering process step by step? Whether showing the state of the vector at each exchange or showing a tree. I tried to print each of the three functions and also tried to create a function, but the results only got worse. #inc...
asked by 03.12.2018 / 21:28
0
answers

Problem with algorithm in C

Well folks, this is the following, I'm developing a project that wants to find a word in a font soup, the rules are as follows:    The letter can be found anywhere in (East, North, South, West, Northeast, North West, South West, South West)...
asked by 01.12.2018 / 17:52
0
answers

What would it be! in the algorithm? ex: if (! preVenda.Text.Contains (',')) [duplicate]

I'm doing a Sales program, and I found this way to solve the problem I had, but I did not understand that exclamation before the condition.     
asked by 25.11.2018 / 12:49
1
answer

Error in the Visualg program "syntax incorrect"

This exercise is faculty, I'm trying to do for VisualG but always from that "error syntax", which I did. I tried others in other ways but found it easier to understand. I do not want the answer, I want to find out where I'm going wrong...
asked by 31.10.2018 / 13:18
4
answers

Fibonacci Sequence

I'm doing selective process, and they are asking me to create a Fibonacci sequence, I just do not know how to create, until I tried (code below) but did not get results. I have to return the F (0) element of the Fibonacci sequence. could anyone...
asked by 15.10.2018 / 18:47
3
answers

Fibonacci sequence does not work [closed]

I have a problem with the output of the Fibonacci sequence and I can not identify where the error is. Here's the code: #include <stdio.h> #include <stdlib.h> int main(){ int i, Fib[100], n; scanf("%d",&n); printf("0 "); fo...
asked by 07.10.2017 / 17:14
0
answers

I am trying to show 1 to 10 in visualg, but it is giving error in 1 line where theoretically everything is right

Algoritmo "SUPER CONTADOR" // Var N1,cont : Inteiro Inicio repita escreval ("===================") escreval("| MENU |") escreval ("===================") escreval ("| [1] De 1 até 10 |") escreval ("| [2]...
asked by 05.09.2018 / 22:14
1
answer

How do I use the "Math.Max" method in C # without having to create a lot of variables?

I'm trying to solve an exercise that looks like this:    Make an algorithm that reads the height and enrollment of ten students. Show highest student enrollment and lowest student enrollment And my code at the moment looks like this: C...
asked by 05.08.2018 / 03:34
0
answers

In the SweepLine algorithm, how to handle if more than one EVENT has the same values for [x-y]?

First of all, I'm sorry if this is an absurd or stupid doubt, after all I did not go to college in the area, just being a curious person willing to learn. A few days ago I started to read about the Sweep-Line algorithm, and I even managed t...
asked by 27.07.2018 / 04:31
1
answer

How to make a Java algorithm that can measure the runtime of the Heap Sort sort algorithm?

I started my algorithm in this way so that it is able to measure its execution time, but I'm not sure if it's right, like continuing with an example: package heapsort; public class Heapsort { public static void main(String[] args) {...
asked by 04.07.2018 / 16:05