3,815 Topics
![]() | |
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. | |
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! | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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, … | |
What is the simplest algorithm to write in pseudocode to cipher the letters of the alphabet with different letters in the alphabet? | |
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 … | |
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 … | |
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, … | |
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 … | |
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 … | |
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 … | |
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. … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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]. … | |
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 … | |
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 … ![]() | |
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; } … | |
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: … | |
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 … | |
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 … | |
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 … | |
hi does nay one know how can i implement the Totally Ordered Multitasking in java | |
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 { … | |
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 … | |
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) % … | |
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 … | |
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 … | |
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 … | |
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 … | |
![]() | 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 … ![]() |
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 … | |
#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 … | |
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 … | |
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. … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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). | |
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 … |
The End.