Questions tagged as 'algoritmo'

2
answers

What is the algorithm of a P2P application?

There are several P2P programs, I know the concept is that each computer is like a client and server at the same time, and that they communicate with each other. About this type of communication: If you do not have a server, how does the pro...
asked by 24.06.2015 / 20:36
4
answers

Contest question: logic error and semantic error?

I participated in a contest and fell the following question:    33 - Analyze the algorithm and tick the correct option for this algorithm. Calculation_Media Algorithm: Var N1, N2, MEDIA: Inteiro Início Leia N1, N2 MEDIA ← (N1 + N2)...
asked by 18.01.2016 / 16:51
2
answers

What is dynamic programming?

What is dynamic programming?    Dynamic programming NOT is dynamic typing What are its features? What are its advantages and disadvantages?
asked by 09.12.2015 / 14:26
7
answers

How to implement a linear regression algorithm?

I need to implement a linear regression algorithm. Preferably, it gives results that are the same as or close to the TREND (or TREND ) function of Excel. I have already found a lot of material that attempts to explain the whole concept of...
asked by 05.02.2014 / 17:26
3
answers

How to find "Happy Numbers" within a range?

I'm making an application where I need to find Happy Numbers within a certain range, in the case of 0 to 50, and found this in Wikipedia :    Happy numbers are defined by the following procedure.   Starting with any positive integer, the...
asked by 14.03.2018 / 01:13
3
answers

How does the Xor Swap algorithm work?

I was studying bitwise operations and came across the Xor Swap algorithm. I understand what it does (it exchanges the value of two variables), but I do not understand how it does it, at the computation and coding level. Follow the algorithm i...
asked by 17.03.2014 / 01:27
3
answers

Algorithm to distribute entries in an encyclopedia based on number of characters per day

I have generated a list of entries in an encyclopedia and I want to find the best way to separate the entries so that I choose a number of days and I have a schedule of which entries I read per day. (The list is here: link ) The first ite...
asked by 12.05.2017 / 22:24
4
answers

What ways to measure the performance of an algorithm?

If I have, for example, some sort algorithms (Merge sort, Quick sort, Bubble sort ...) in which way (s) can I know the efficiency of each?     
asked by 17.11.2015 / 14:34
2
answers

What are evolutionary algorithms?

Researching on Evolutionary Programming, I came across the question What are genetic algorithms? In an excerpt from the answer:    ... Genetic algorithms are a particular class of algorithms   evolutionary ... So, I'd like to know:...
asked by 03.01.2019 / 17:03
2
answers

Comparison of search algorithms within text strings

I'm trying to implement the following algorithms for searching expressions within Java text strings: Knuth-Morris-Pratt (KMP), Brute Force, Boyer-Moore, and Levenshtein How could you show the similarity obtained to perform a comparison betwee...
asked by 07.08.2015 / 04:49