Questions tagged as 'algoritmo'

2
answers

How do I check if there is a special character or number in a string in C?

I'm confused in logic to see if you have other characters than alphabetic characters. I thought the following logic, but I think it is wrong: char nome[30]; scanf("%s", nome); int especial = 0; for(i=0; i<strlen(nome); i++{ if(!(nome[i] &...
asked by 11.07.2017 / 00:04
2
answers

Location of a point within the range of an arc

I'm looking for a Javascript function that returns a random value within a range in the area of a circle. The interval would be along the radius with distances equivalent to the center point and the radius endpoint, also considering a range of d...
asked by 21.01.2015 / 18:27
1
answer

Sort structures because the representation is done in matrix?

Studying ordering methods, I realized that even the method receiving a vector, its graphical representation of how a method works and how it is explained in many materials is by using an array. As in the example below: (reference) . D...
asked by 25.08.2015 / 19:33
1
answer

Algorithm to find common word sequence

I'm looking for a logic where I can find in an exorbitant amount of data, phrases that are common. Sentence in this context is a sequence of words. For example in these sentences: I'm traveling to Orlando from the South I really wante...
asked by 07.05.2016 / 17:07
1
answer

How does a virtual keyboard work for security purposes?

I know you have several posts here citing the pros / cons of virtual keyboards to avoid keyloggers , but I did not see any that went deeper into that specific point:    How do these virtual type keyboards work? Where, instead   If you enter...
asked by 13.07.2017 / 16:39
1
answer

C menu that moves with the arrow keys?

I once saw an algorithm in C where in the menu selection had a "mini navigation" if I can call it that way, where I used the arrow keys to navigate the menu and enter to select the option, I was curious to know how do that, can someone show? Tha...
asked by 15.06.2016 / 21:32
1
answer

How can I calculate the font size of tags in a tag cloud?

I have a tag cloud and want to change the font size of each tag as per its usage. I need to have a minimum size and a maximum size. What would be the formula for calculating the size of the tags?     
asked by 24.12.2013 / 19:00
1
answer

How to implement the algorithm of the Theory of the six degrees of separation?

What is it? Theory that, in the world, it takes at most six bonds of friendship so that two people are connected. Question: I have been trying to implement this algorithm for some time, but I can not imagine how I would make the links...
asked by 24.04.2014 / 06:20
2
answers

What is the equivalent of a functional specification for games?

Work at a company that writes software for commercial use, usually in the sistema style. To specify the software we use several documents among them: Functional Specification MER (Database Modeling) BPMN activity streams Technic...
asked by 20.04.2015 / 02:43
4
answers

An algorithm to find duplicate files?

I need to make a program that finds duplicate files on my computer, so the user can decide what action to take with these files (eg delete the copies). For now, I only worry about a binary comparison between files (that is, the file is only dupl...
asked by 30.01.2014 / 13:18