Questions tagged as 'algoritmo'

1
answer

is there any software that analyzes the complexity of an algorithm?

Is there any software that performs the complexity analysis of an algorithm? if so, I would like to know which     
asked by 24.03.2015 / 15:13
1
answer

Splitting a line into a number of segments

I need to split a line into multiple segments, and all segments need to be integers. But sometimes the division of distância / segmentos results in a number that truncated does not cover all distance and taken to the ceiling exceed...
asked by 10.04.2015 / 07:13
1
answer

Logical system for directories

I have a system of directories in the bank ex table directory: id parentDirID parent dir means q is a subdirectory. How would the "copy" directories function on the system? moving directories would just update the parentDirID, so I wo...
asked by 18.03.2015 / 15:52
1
answer

How to fill in the data of a tree-shaped element?

I have a p:tree element of Primefaces, and would like to populate it with existing data in ArrayList . Actually I would just like to get an idea of what the algorithm might be like to do this. Purpose: The idea is to repr...
asked by 28.10.2014 / 18:15
1
answer

Scroll through an array and validate repeated numbers

I am doing a final work in the first semester in BCC course and I need to do a Mega Sena algorithm with the following characteristics: Maximum of 10 players Each player must bet a minimum of 6 numbers and a maximum of 15 numbers Valid nu...
asked by 28.05.2014 / 00:27
1
answer

Java Permeability

I'm having some difficulty solving a recursion problem, which I'll explain below. Given an array of n rows and columns, check whether there is permeability, ie having the following matrix (where '*' - represents open node and '-' - represents...
asked by 11.03.2014 / 17:05
0
answers

Pass numbers from input to array in Python

I'm doing an exercise on split graphs, in which input is given as follows: 6 2 4 5 1 3 2 3 5 1 0 2 2 1 1 1 Being 6 (the number of the first line) the number of lines to be read, and the other lines are about the vertices that have connectio...
asked by 28.11.2018 / 22:04
1
answer

Deep Search with Prolog - how to limit depth?

I'm implementing an in-depth search on graphs in Prolog, I already have the following: %arestas: edge(c4,b4). edge(b4,b3). edge(b3,a3). edge(b3,c3). %determina que o grafo é nao direcionado edge(V1, V2) :- edge(V2, V1). %busca em profundida...
asked by 25.10.2018 / 21:02
0
answers

somebody help me with this visualg function [closed]

I'm trying to use the visualg ready functions, to read a name, say the 3 letter code, as well as show it, but the problem is this giving direct error type ("this is the code for the third letter of your name:", copy (minusc (x), asc (x), comp...
asked by 28.09.2018 / 03:35
1
answer

How to calculate the sum of each row of a matrix in C?

I need to create an algorithm that reads the dimensions of an array, read the values to be placed in the array, with a vector calculate the sum of the values of each line and print the array and vector. This float soma computes the tota...
asked by 08.09.2018 / 17:46