Questions tagged as 'algoritmo'

1
answer

Help with algorithm of "n" prime numbers in an ArrayList

Please, I need urgent help, how to fix my code? every time I call the right error method, I'm a beginner and I'm locked in an exercise that requires prime numbers based on a number n (in this case this.n), for example the number is 20, it...
asked by 30.05.2017 / 06:28
2
answers

Check the status of a service at Amazon

Well my question is not exactly about code but how to start a project. My question is the following, having a machine in the amazon, inside it there are several services that are running ... my problem is that these services can "fall" and I...
asked by 04.05.2017 / 02:32
2
answers

Generate random numbers in java, store in a vector and sort them

I need to generate 100000 numbers, store them in a vector and sort them using the BubbleSort algorithm, the error "Exception in thread" main "java.lang.Error: Unresolved compilation problem: at testaSort.main(testaSort.java:8)" Code below:...
asked by 14.05.2017 / 03:43
2
answers

Factorial Algorithm in Portuguese Studio

I have this algorithm: programa { inteiro numero, fatorial, resultado=1 funcao inicio() { escreva ("Insira um número a ser fatorado: ") leia (numero) para (fatorial = 1; fatorial <= numero; fatorial++...
asked by 11.04.2017 / 23:00
1
answer

Invert the size of the letters box - VISUALG

I'm having a problem, programming algorithms in visualG. I need to invert an array with values assigned to it. // opcao 18 funcao menu_18():caractere var inicio escreval (" A ORDEM INVERSA É: ") para contador de 12 ate 0 faca escreva(" ",...
asked by 08.06.2016 / 01:48
1
answer

I need to know the size of a file even before it is created

I have a college job and it's hard to solve ... it's kind of the wordlists that hackers use, but it's for teaching. QT: Generate a file with all possible groupings using the concept of simple arrangements in which we have n elements arranged p...
asked by 17.04.2016 / 20:31
1
answer

Character Alignment

I would like someone to tell me how I can get the numbers to align this way with the words from the top index, I'm doing a replica of this example for a college job, but I can not get numbers to align without ever expanding to off the scre...
asked by 02.04.2016 / 06:48
1
answer

It is better to use common division or Shift and Sum operations in 8bits microcontrollers

Considering programming for 8bits microcontrollers, we know that even for this microcontrollers, the compilers have reached a unique optimization level and that allows us to program focused only on the quality of the code reading. But when pro...
asked by 09.07.2015 / 19:08
1
answer

Programming logic to set up Trinitarian network

I can not mount the trinational network below: The logic is as follows: I register on the system and a link to the indication is generated; The 1st, 2nd and 3rd position is occupied (it can be registered through my link indication o...
asked by 29.01.2014 / 22:27
1
answer

Optimization Genetic Algorithm - Node.Js

I'm transcribing a Java genetic algorithm for JavaScript (Node.Js), but I'm having memory and optimization problem. Problem Context: This is an algorithm in which the company where I work is trying to implement. The problem is that the algori...
asked by 22.12.2018 / 19:52