Questions tagged as 'algoritmo'

0
answers

incremental lexicographic order

1) There is some order (lexicographic, colexicographic, minimal differences, gray code, etc.) that: The. incrementally add elements (an "n + 1" -th element) to the set (cardinality n) where the subsets and tuples are created B. and each new ad...
asked by 24.06.2018 / 19:45
1
answer

Kruskal's Algorithm sorted with selection sort

I am trying to compare two variables of a struct type, however it is returning error. struct aresta{ int v1; int v2; int peso; }; ... aresta peso[62816]; aresta aux; int i, j=0; for(i=0; i<(tamanhoVetor - 1); i++){ int...
asked by 11.06.2018 / 09:45
0
answers

Monitor treadmill running on mobile phone

Context : Using the sensors of the cell phone, I need to define a running pattern on the treadmill to know the average speed and the distance covered. I created a program to print sensor values on the axis x , y and z , ba...
asked by 15.06.2018 / 22:43
1
answer

Variable never reaches zero using randi

Would you like to show Life: 0 in the VisuAlg console result? I tried to put Ate (life = 0) but it gives infinite loop. If someone can help me, I appreciate it. The version of my VisuAlg is 2.0 algoritmo "RPG" var damage, life:...
asked by 06.06.2018 / 09:51
1
answer

Removal of Duplicate Elements: divide and conquer

I'm having trouble getting an algorithm that removes duplicate elements in an array (it can only be integers), which uses the Divide And Conquer method. I'm needing for a college job, and unfortunately I'm not able to find / implement an algor...
asked by 14.05.2018 / 22:32
1
answer

Doubt regarding the minimax algorithm

The minimax, by definition, is great if the two players perform optimally, right? However, can we say something when one of them plays great and the other does not? In the case of the old game, as the state space is small, the player that acts w...
asked by 19.04.2018 / 00:42
0
answers

EXCEL: Form with filling in specific places

InthisimageIhave7"blocks" to be filled via form, they are side by side. As I do in vba a function that fills in these blank fields of TM1 and TM2 automatically, I want to include this function in a form to fill with the forward and back button,...
asked by 14.04.2018 / 05:30
1
answer

Arduino with counter

I can not understand what is wrong with this code, I was supposed to press s1 once and m1 to stay connected but it turns off after a while. The program also does not count as it should. The question is this: In the system below when a par...
asked by 14.04.2018 / 12:17
1
answer

Iterative PreOrder - Binary Search Tree

I have a function that traverses BST ( binary search tree) in pre-order recursively. The function is as follows: public Iterable<Key> preOrder() { Queue<Key> queue = new Queue<Key>(); preOrder(queue,root...
asked by 10.04.2018 / 13:00
1
answer

Read archive and order words in alphabetical order (with removal of special characters)

I'm trying to find the error, but I'm not getting it. The program consists of reading a .txt file with the following content, for example:    Home-orange, otolaryngologist flower   notebook-blackberry table Then the program should remo...
asked by 04.04.2018 / 08:28