Questions tagged as 'algoritmo'

0
answers

How does the RSA encryption algorithm work? [closed]

I wanted to understand how the RSA algorithm works, step by step, for a better understanding and for me to use it properly.     
asked by 18.01.2016 / 16:53
3
answers

How to invert an integer?

Notice this statement: /* * Faça um programa que peça um numero inteiro positivo e em seguida mostre * este numero invertido. Exemplo: * o 12376489 * => 98467321 * */ Console.Write("Informe um número inteiro para ser inv...
asked by 01.10.2017 / 20:55
1
answer

What is the function of the array?

I'm studying algorithms with Portugol and I'm having difficulty understanding the vector's function in code. I already know how to use this structure.     
asked by 22.04.2016 / 22:10
3
answers

Difference between full and full binary tree

What is the difference between a full binary tree and a full binary tree?     
asked by 09.06.2016 / 18:56
2
answers

Catching elements around a selected array

The idea is to create an array of integers with the amount of rows and columns defined by the user. Then an existing value in the array must be entered and the program should return the values immediately to the left, right, above and below the...
asked by 30.08.2018 / 16:26
1
answer

What is the difference between functions and procedures? [duplicate]

I'm studying algorithms and I'm having a hard time understanding the difference between them and when to use these sub-algorithms in a program. I'm learning to program with portugol algorithm.     
asked by 09.04.2016 / 03:54
1
answer

Percentage of equality of texts?

Is there a method that lets you know the percentage of equality of two strings in Java? An abstract algorithm would also work.     
asked by 20.10.2014 / 11:20
1
answer

Fill char array with random words [closed]

I'm trying to develop an algorithm able to get a vector of strings, sort by word size in descending order and place them inside an array of char embedding if possible all words. The idea of everything would be how to create a grid and make the w...
asked by 20.09.2016 / 12:52
2
answers

Path between 2 nodes of a graph using a smaller number of colored edges

I'm trying to solve this programming problem. In short, the problem describes several bus lines as an undirected graph and says that the passage of a bus costs 1 real. Can anyone give me a hint how can I get the lowest cost in Reals that ex...
asked by 26.10.2015 / 13:18
2
answers

Maximize solution: construction of sublists meeting limit

Having a set of n-values, I need to divide these items into subsets that do not exceed the value (sum of all items) stipulated and assure me that the formation of the set is as close as possible to the stipulated value. > For example, having a...
asked by 24.02.2014 / 18:22