3,815 Topics

Member Avatar for
Member Avatar for fularipk

Hello, Is there any algorithm which will track the eye and i want to move cursor using eye's movement so tell me if there is any algorithm present for cursor movement by eye's movement.

Member Avatar for SasseMan
0
168
Member Avatar for polinolin

hi, buddy. i have problem to generate 1024bits key RSA algorithm on PHP. i always get error when compile my program on mozilla. can you help mo to find the solution to generate it or generate prime 1024 bit? thanks!

Member Avatar for pritaeas
0
41
Member Avatar for phorce

Hello, I'm trying to develop an algorithm/program that calculates the distance between two points. These values are stored inside a 1D array, which, acts as a 2D array (I think you know what I mean!) The values are: 150 50 15 20 The calculation should therefore be: d = √(150 …

Member Avatar for phorce
0
209
Member Avatar for aldrin_ison1

Hi! I'm constructing a code for parsing results in an html form and I'm having problems with strcat. It's really weird 'cause I'm positive the syntax and all that are all correct. I can't seem to find where the problem is. Basically, I have this non-empty string "copy" and when …

Member Avatar for aldrin_ison1
0
239
Member Avatar for soham.m17

I want some **Logical** algorithm to get all possible combination of given string except the palinadromes. Like Input is: ABC OutPut: A,B,C,AB,AC,BC,ABC,ACB,BCA,BAC It can't contain CBA,CAB as it already has ABC,BAC i.e reverse of those. I want to get it done by boolean logic and but it is no where …

Member Avatar for stultuske
0
287
Member Avatar for nstruzik

Im pretty new to coding in C++ and Im a student at devry unversity. I have to sort this class by credit hours in ascending order and Im having some trouble. If anyone could help it would be greatly appreciated. #include <iostream> #include <string> #include <vector> #include <algorithm> using namespace …

Member Avatar for Ancient Dragon
0
222
Member Avatar for pateldeep454

Main.java [CODE] package scrabble; import javax.swing.JOptionPane; import javax.swing.JDialog; public class Main { public static boolean isDoubloon (String word) { int count[] = LetterHist.letterHist (word); for (int i = 0; i < count.length; i++) if (count[i] == 2 || count[i] == 0) continue; else return false; return true; } public static …

Member Avatar for svfox2000
0
323
Member Avatar for ubi_ct83

hi guys, i need help on algorithm to combine letters from a word. for example, i have this word: 'ABCD' . then i want to combine 3 letters from that word. so it comes to these combination: 1- ABC 2- ABD 3- ACD 4- BCD how is the algorithm in …

Member Avatar for JamesCherrill
0
177
Member Avatar for astian

Hi everyone, Ok, Im new to the forum so I hope I've placed the question in the right place, and here it is : I am developing a silverlight application that uses Bing Maps. The Idea behind the application is that to help land owners (farmers , agronomy businessmen) visualize, …

Member Avatar for astian
0
108
Member Avatar for minnie19

What is the simplest algorithm to write in pseudocode to cipher the letters of the alphabet with different letters in the alphabet?

Member Avatar for stultuske
0
60
Member Avatar for sandeepalankar

Hi, I have a problem in data structures I am stuck in this one .Please try to help me. Question : A man Joe has a habbit of eating pancakes & driving bikes.Once he went for outside by his bike,now he is EXACTLY IN THE MIDDLE OF A ROAD his …

Member Avatar for WaltP
0
180
Member Avatar for iamnot

Sample Input: 20 10 2 5 2 Sample Output: 2 Explanation: An amount of 20 could be made in 2 ways: 10*2 10*1 + 5*2 I want to find out the number of ways a particular amount can be made with given coins.In the sample input 20 is the amount …

Member Avatar for sepp2k
0
137
Member Avatar for ubi_ct83

hi guys, i really need help on this problem. i have a code, but i need to convert it to algorithm.but i dont know how since im still new in this programming matter. hope u guys can help me please.... thanks for advance. public static void calculateTotalTupples(int p, int s, …

0
62
Member Avatar for auginiesta

design an algorithm using IF statement to assign grades to an exam marks: 1.Marks below 40 is F 2.Marks greater than or equal to 40 and less than or equal to 50 is D 3.Marks greater than 51 and less than 70 is B 4.Marks greater than or equal to …

Member Avatar for phorce
0
190
Member Avatar for Deena1977

Write a program that has array of at least 20 integers. It should call a function that uses the linear search algorithm to locate one of the values. The function should keep a count of the number of comparisons it makes until it finds the value. The program then should …

Member Avatar for Lucaci Andrew
0
117
Member Avatar for Danja

Hello all, I have a long list of coordinates which are supposed to trace the outline of a city. They are supposed to go into a program which plots the trajectory from one coordinate to the next, thereby plotting the outline. For some reason (I'm not sure why; I'm trying …

Member Avatar for hkwhitten
0
1K
Member Avatar for eves007

So I wrote this code for generating a maze, when I run it i get ArratOutOfBoundException. sometimes it gives me the error after generating the maze once but sometimes I generate couple time then it crashes. I feel like my error is in the while loop but can't find it. …

Member Avatar for stultuske
0
130
Member Avatar for Remy the cook

I wanted to write the brute force algorithm for string matching by multithreading. I have made the program by using a single thread. In multithreading sample code, I have initialised the no. of threads to be strlen(text)-strlen(pattern). I do the matching in the ThreadFunc. Do I have to divide the …

Member Avatar for Lucaci Andrew
0
224
Member Avatar for ItecKid

Hello, I am attempting to write the merge sort algorithm which will generate a vector of 20 random integers and then sort them. The problem is, it does not output the sorted list, it merely outputs a series of zero's and one's. My code is as follows, any help is …

Member Avatar for Calbert21
0
522
Member Avatar for dirt_bagz

Dear all, I am looking for an expert opinion on what the fastest combination generator is. I am currently facing a problem of generating a huge combinations (k elements out of n) and as it stands now, the running time of my program will take more than three years. My …

Member Avatar for Soufiene
0
4K
Member Avatar for leoblanc

Hi all, I am creating a new login form, different from the default login, but when i try to connect to the database. it said password is not correct.. I just realised that password is encrypted. but i dont know what kind of algorithm it uses. I am using joomla …

Member Avatar for leoblanc
0
344
Member Avatar for Remy the cook

I have to write a program that finds a pattern in a text using Brute-force method. I have made functions to read the text file, pattern file and to execute the brute force algorithm(called match). These are called in main(). i need to store the index (at which the pattern …

Member Avatar for Remy the cook
0
235
Member Avatar for osiron

I'm trying to create a program where I want to generate all permutations [1,2,3,4] and I recursively generate all the permutations of [1,2,3]: [1,2,3], [1,3,2], [2,1,3], [2,3,1], [3,1,2], [3,2,1] and then put 4 back into the sequence of numbers. For example, with [1,2,3], we get [4,1,2,3], [1,4,2,3], [1,2,4,3], and [1,2,3,4]. …

Member Avatar for osiron
0
184
Member Avatar for boris90

Hi, I need a program to search all lines of a file (a whole file) for a certain string. In my concrete case, I need it for login. Let me sum all of this up, so you get the whole overall point of what I have so far: - a …

Member Avatar for Moschops
0
663
Member Avatar for Subless

I would like to create a custom algorithm for encrypting and decrypting strings of data. I want the algorithm to allow two parameters: 1. Custom salt string for the algorithm to use to create custom encrypted strings of the data. 2. The data to be encrypted / decrypted. I don't …

Member Avatar for diafol
0
286
Member Avatar for Psyho

Good Evening (in CET) to everyone. I am in need of a bit of help. I have the following cpp and.h files: dirmain.cpp #include "dirseq.h" #include <iostream> #include <algorithm> #include "dirseq.h" #include <string> struct IsEven { bool operator()( int i ) const { return i % 2 == 0; } …

Member Avatar for Psyho
0
322
Member Avatar for lotusdream

Hi everyone,I'm tryind to do something about sound on linux.I basically record some sound and try to encyrpt it using algorithm.However,I encountered some sort of pointer problem.Both RSA algorithm and recording&listenin sound works properly. Here is my code: /* * rsa.c * * Created on: 24 May 2012 * Author: …

Member Avatar for Schol-R-LEA
0
392
Member Avatar for Taniya19

I want a fast algorithm to calculate no of permutations for n elements with some elements identical. Using formula : n! / k1! k2!....km! where ki = no of i elements, i = (1,2,...m) and k1 + k2 + ...... + km = n **Without calculating each factorial** as if …

Member Avatar for TrustyTony
0
168
Member Avatar for VernonDozier

This program does not crash but behaves badly due to not allocating enough space for vector z in line 21. If I comment out line 21 and instead uncomment line 23, things work well. If I comment out both lines 21 and 23, the program will crash, presumably because I …

Member Avatar for VernonDozier
0
384
Member Avatar for RyMarr475

I want to do something like a high scores list in my game application. I was wondering, if I can load a picture file into my game, why can't I add a text file? How would I go about having my program add text to a text file, and is …

Member Avatar for NormR1
0
107
Member Avatar for anisha.silva
0
64
Member Avatar for sciwizeh

Hello, thought I'd ask before getting too deep into code to make sure I understand this properly. As described in the Gamma et. al. book the Visitor Pattern looks something like this: interface Visitor{ public void visitX(X x); public void visitY(Y y); public void visitZ(Z z); } interface Visited { …

Member Avatar for JamesCherrill
0
1K
Member Avatar for Simone Z.

Hi! In my program I have to calculate the Adler32 checksum of a file, but I've a problem in using this algorithm. The function prototype is: unsigned long adler32(unsigned long adler, const char *buf, unsigned int len); I know how to calculate the Adler32 checksum of a string, but in …

Member Avatar for Simone Z.
0
2K
Member Avatar for baseballer

Hi, I need some help coming up with an algorithm that will return class 1, 2, or 3 based on the year that is entered. I have an example that works but I need something a little more simple. `function senateclass (cycle) { return 3 - ((cycle % 6) % …

Member Avatar for baseballer
0
119
Member Avatar for Zvjezdan23

I am programming a number of students and quiz questions and correct answers program for my school's programming II class. I have an ok knowledge of C++, but I cannot understand the reason why my code does not work. I have created an integer of num of students, I asked …

Member Avatar for DeanMSands3
0
133
Member Avatar for ollie60

Hi I am having an issue with inputting data in the correct format in the code below. The code is modified from the original and I am currently trying to figure it out. Originally data was read in from what I am assuming was a binary file using the function …

0
82
Member Avatar for Cronicle8

Good afternoon, I'm having somee trouble with a functional application, the only thing missing is switching the motion regions with an image. Any help is higly appreciated. using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Drawing.Imaging; using System.Text; using System.Windows.Forms; using System.Threading; using AForge; using AForge.Imaging; using …

0
166
Member Avatar for kogorman

I was recently toying with an idea from my education in computer science, namely that any deterministic algorithm can be expressed with just two control structures: a loop containing a switch. I never doubted it. From a certain point of view, that's what programs look like to the silicon of …

Member Avatar for kogorman
0
376
Member Avatar for sammoto

Hi everyone, I'm trying to write a basic program to find the root of an equation. I just tried compiling it for the first time and I get the following error: RootFinder.java:6: <identifier> expected public static double searchValue(double x0, x1, a) { ^ RootFinder.java:6: <identifier> expected public static double searchValue(double …

Member Avatar for sammoto
0
102
Member Avatar for abhishekagrawal

Hi All, I am writing a program to find the number between 1 and 100 that has the greatest number of distinct divisors. Below is my code for the same. It is returning an erroneous answer, i.e. 8 for greatest number of distinct divisors and 4 as the number for …

Member Avatar for nullptr
0
200
Member Avatar for Zvjezdan23

#include <iostream> #include <string> #include <cmath> #include <math.h> #include <algorithm> #include <cstdlib> using namespace std; int main() { string names[10]; int score[10]; for(int scores = 0; scores < 10; scores++) { cout << "What is your score? "; cin >> score[scores]; cout << endl; } int swapHolder = -1; int …

Member Avatar for deceptikon
0
137
Member Avatar for kendaop

Hello everyone! I'm making a game where players build walls and move their pieces to try to be the first player to reach their target square. Essentially, it's a checkerboard, and players can build walls on the segments between adjacent squares to impede their opponents' movement. The one catch is …

Member Avatar for kendaop
0
654
Member Avatar for Valiantangel

Just need some understanding on the various Prime number calculations.Please explain 1. verify by brute force that a number is evenly divisible only by 1 and itself.(dont implement the Sieve of Eratosthenes algorithm) 2. writing and running the program with upper limits of n/2 and the square root of n. …

Member Avatar for TrustyTony
0
123
Member Avatar for adohertyd

I'm trying to build a meta search engine in Python, probably using Grok as a framework. Django seems a little more complicated than I need. My main problem is that I can't find any decent tutorials for Grok. It's own tutorial doesn't really explain anything. The way I intend it …

0
65
Member Avatar for asif49

Why is it that a perceptron or a single layered neural network can't solve the XOR problem, or problems that are linearly inseparable. Before someone tells me to use google, I have. All the neural network guides that are online or in books are so overly complicated with masses of …

Member Avatar for asif49
0
681
Member Avatar for ssa-ed

Does anyone have a nice algorithm for capitolizing first characters of words? For example: The cow can't jump over the moon. -becomes- The Cow Can't Jump Over The Moon. -and 'neath the old olive tree -becomes- 'Neath The Old Olive Tree -and- help me (if you can) - becomes- Help …

Member Avatar for pritaeas
0
124
Member Avatar for MarPlo

Hi, Something that is interesting for webmasters, and SEO. Google announced a new algorithm change to reduce the ranking of 'perceived' spammers. http://insidesearch.blogspot.com/2012/04/another-step-to-reward-high-quality.html This latest update appears to target keyword stuffing (lists of keywords) and article spinning. This will reduce the rank of the website with spam keywords in their …

Member Avatar for NeoJunior
0
238
Member Avatar for psycho_

Does any one know if I can find these problemes here ? 3. Problem #3 a. What will be the result of the following code if executed? Comment the assembler instructions MOV BX, 20A MOV AX, [BX+1] MOV CX, [BX - 2] CMP AX, CX JB cxismax SUB AX, CX …

Member Avatar for skaa
0
103
Member Avatar for samar11

please help me coding this in c++:  Inverse matrices.  Calculate matrix determinant.  Set a row or a column of the matrix to a certain value.  Calculate performance (time and memory taken by each algorithm).

Member Avatar for samar11
0
167
Member Avatar for jaysb

hello sir i have python code can u convert it into java . code is below..... plz help............ # Ad-hoc algorithm for copy-move forgery detection in images. # Implemented by - vasiliauskas.agnius@gmail.com # Robust match algorithm steps: # 1. Blur image for eliminating image details # 2. Convert image to …

Member Avatar for TrustyTony
0
4K

The End.