3,815 Topics

Member Avatar for
Member Avatar for Ghouri

Pl;ease Any Body Help Me Out to send a Lnk so i can check code written in c,c++ about hamming algorithm.. please

Member Avatar for jencas
0
151
Member Avatar for osan

Hi, I am using Cimage library to do a Sobel algorithm. Here is the code [code=cplusplus] CImage * image1; image1->Load(".\\tempSnapShot1.bmp"); CImage* returnImage = new CImage(); Sobel(image1,returnImage);[/code] The Sobel function is [code=cplusplus]void CI90ControllerDlg::Sobel(CImage* image,CImage *returnImage) { returnImage->Create(image->GetWidth(),image->GetHeight(), image->GetBPP(),0); double GX[3][3],GY[3][3]; int sumX = 0; int sumY = 0; int SUM = …

Member Avatar for Dave Sinkula
0
290
Member Avatar for cooldev

Hi , IM TRYING TO WRITE A TEXT FORMAT PROGRAM along the lines of the algorithm & pascal code found in similar named problem in "how to solve it by computer" R.G.Dromey. What it does is take a "limit" from user and users input text...it outputs the re-formatted text as …

Member Avatar for yellowSnow
0
75
Member Avatar for gretty

Hello I have a program I am trying to make which takes in a word pattern (eg; d?ll, h?l?o, go?dby? etc) & searches an 'array containing different words' to find any words in the array that match the input word pattern. So for example; if I input 'd?ll', the program …

Member Avatar for VernonDozier
0
441
Member Avatar for jooa

I have written two classes, one the GrabPixels class which takes an image and extracts the pixels from it. The FFT class then tries to call grabPixel. The problem I get is that img in this line [CODE]grabPix = new GrabPixels(img);[/CODE] is null. I'm not too sure why. Could someone …

Member Avatar for quuba
0
206
Member Avatar for sameeraict

hi, i need some help on analysing the complexity of above algorithm, for i <--1 to n-1 do for j <-- i+1 to n do statement of O(1) time end of the loops. please give me ur's ideas

Member Avatar for sameeraict
0
129
Member Avatar for dzhugashvili

hello. I need help implementing an SSE2-accelerated MD4 implementation. I found one that I think may work at [URL="http://www.freerainbowtables.com/phpBB3/viewtopic.php?f=6&t=904&start=30"]http://www.freerainbowtables.com/phpBB3/viewtopic.php?f=6&t=904&start=30[/URL] it is the post by Corni: [QUOTE]“So, I took a crashcourse in how to implement MD4 and in what the hell is SSE2 and how do you use it, and implemented …

Member Avatar for dzhugashvili
0
141
Member Avatar for Questions???

Hello, I have a question about array lists, specifically how to pass array lists to a method. Then once in the method how to do simple algorithms. My example is I have three array lists, two of which have static double numbers and the third who's numbers are the end …

Member Avatar for Questions???
0
77
Member Avatar for eaon21

[CODE] #include <iostream> #include <algorithm> #include <conio.h> #include <cmath> #include <iomanip> using namespace std; int main() { int terminals[]={1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20}; int count,row,col,i; int limitcomp[20]; int coordinates[2][20]; double smallest = 0.0; double current = 0.0; double x, y; int network = 1; double chunk, total; do { cout<<"Enter number of computers: "; …

Member Avatar for VernonDozier
0
148
Member Avatar for dzhugashvili

I have this code: [CODE] #include <iostream> #include <string> #include <vector> #include <algorithm> #include <fstream> #include <stdlib.h>//(for atoi to work) using namespace std; void usage() { cout << "Usage: <input1> <input2> <output>\n"; cout << "\n see README for more details.\n"; exit(1); } int main(int argc, char *argv[]) { cout << …

Member Avatar for dzhugashvili
0
144
Member Avatar for goody11

Hey, I'm having some troubles with my hangman game i'm making. I want it to display dashes for the number of characters that there are in the word which that part works fine. but then if they guess the right letter, I want the dash to be replaced with the …

0
72
Member Avatar for Alibeg

Hi guys....i have a problem and I hope you can explain me where am I wrong... I am doing some kind of Breadth First Search (BFS) ("some kind of" because this is my first program to use this algorithm) I have an array of size 4^9 (262144 for those of …

Member Avatar for Alibeg
0
182
Member Avatar for dzhugashvili

Here is my code: [CODE]#include <iostream> #include <string> #include <vector> #include <algorithm> #include <fstream> #include <stdlib.h>//(for atoi to work) using namespace std; void usage() { cout << "Usage: <input1> <input2> <output>\n"; cout << "\n see README for more details.\n"; exit(1); } int main(int argc, char *argv[]) { cout << "\nshmoosh …

Member Avatar for Ancient Dragon
0
144
Member Avatar for csinquirer

I plan to develop a timetabling software for student class schedules. To do this, I intend to use a local search algorithm. What could be the most efficient way to implement the search space? Should I represent each schedule as a solution?

0
60
Member Avatar for stella44

[code]public class Intersection { private static String intersect[]= new String[3]; public static void main(String args[]) { // initialize Intersection intersect[0]="A"; intersect[1]="B"; intersect[2]="C"; for (int i=0; i<intersect.length ;i++) {System.out.println(intersect[i]);} Intersection inter= new Intersection(); System.out.print(inter.getIndex("C")); } //get index of intersection public int getIndex(String str) { for(int i=0;i<intersect.length;i++) { if(intersect[i].equalsIgnoreCase(str)) { return i; …

Member Avatar for VernonDozier
0
151
Member Avatar for Hiroshe

Kinda had an idea for artificial intelligence, though I don't think it's original. I don't know much about AI, so I'm taking a shot in the dark. My idea comes from biology and evolution (not new in computer science). The 'algorithm' for evolution is simple. Lets say you have a …

Member Avatar for Hiroshe
0
206
Member Avatar for Voulnet

Hello there fellow members. I have two windows forms, and they call each other. - Form 1 has a button that calls Form 2. - Form 2 does not have an exit button, but rather a button that goes back to Form 1. - Form 1 is the main form …

Member Avatar for Voulnet
0
127
Member Avatar for atqamar

I am given several coordinates on a 2D plane. These points represent the centers of circles of a constant specified radius. I've been working on a program that outputs all of the coordinates of the circles that collide. This is simple to do if I simply create a distance matrix …

Member Avatar for atqamar
0
140
Member Avatar for gavin1234

Hi all C# experts out there, I'm currently working on a school project. When i use the Decrypt method from the Rijndael algorithm, i would run into a "invalid padding" error when decrypting. What should i do? [code=csharp] public byte[] Decrypt(byte[] cipherTextBytes) { // Convert strings defining encryption key characteristics …

Member Avatar for ronnyron
0
512
Member Avatar for nissan

Hi, I got the following question: We have an AVL tree with n nodes (numbered from 1 to n). Each node i contains a weight - wi which is an integer. Pi is the set of the ancestors of the node i, and w(Pi) is the set of weights of …

Member Avatar for Saschakil
0
75
Member Avatar for emint

hi i got problem in ma program. in my pro i got main window when i click on "Maze 1" button it create maze. it worked fine. when maze is created i slove maze. then i close to return main window. now when i hit the "maze 1" button it …

Member Avatar for emint
0
116
Member Avatar for Katvillan

I am doing a battleship game for my project. I am still trying to make a better algorithm.. This is what I have so far. Here is a code that will pick random coordinates for the computers ship, then draws the board and show where the ship is located... Assuming …

Member Avatar for wildgoose
0
199
Member Avatar for swinefish

Hey all I'm looking for a nice simple password encryption algorithm. I'm not looking for anything amazingly military type secure, but If I could do something irreversible, I'd be happy. I've looked at a couple of google searches, but found nothing particularly interesting. Any help would be greatly appreciated. Thanks …

Member Avatar for swinefish
0
288
Member Avatar for Jiro90

Can anyone explain the flow chart or algorithm of the program attach? The program is about LCD clock but I don't know how it works. I need it by tomorrow so please help me take a look. Thanks

Member Avatar for wildgoose
0
101
Member Avatar for shivaa

Question - Three stacks can be used to sort a list of numbers. Assuming stack in holds the input list of numbers, stack out is to hold the output list after sorting the numbers and temp is used during the sorting process. The sorting algorithm follows. 1 set up stack …

Member Avatar for shivaa
0
85
Member Avatar for liechie

guys can u give me suggestion regarding a topic for my thesis it is just being disapproved here's the description Chasing game is the theme of this proposal. Imagine that a Non Player Character chases the user who’s collecting the key (item) for opening the door. Each level has its …

Member Avatar for ithelp
0
239
Member Avatar for laks_samy

hi i need two dimensional cutting algorithm with sample code (vb,vb.net or c) pls any one help me. thanks

Member Avatar for laks_samy
-1
84
Member Avatar for deadlyEvil

hi guys I need your help I need to know if anyone knew any book that talks about how can get the information from images such as the color in it like to search for the image that contains the blue color please help me by giving me any book …

0
49
Member Avatar for jpe4

I am currently doing a project on LR Parsers and need to code the algorithm using Java. The code should use the parse tables and determine wheather a word is accepted using the grammar provided and using the Parser tables. I am stuck on where to start so any advice …

Member Avatar for ddefrancesco
0
179
Member Avatar for jayneben

Hi, I'm just learning to use C# for the first time for a university paper and for my tutorial I'm wondering if someone could please help me with figuring out how to start modifying the sort method so that it sorts the array of integers into descending order. My code …

Member Avatar for ddanbe
0
310
Member Avatar for SlvrDragon50

Hello! I've been given a task where I need to compare two strings of DNA for similarity given a location. There are two files: One which contains the alignment locations and the string of DNAs and one that contains the location that I am comparing. So far, I believe I …

Member Avatar for SlvrDragon50
0
141
Member Avatar for #define:me

I have an urgent assignment to write a c++ program and I lack time to learn the whole language. Is there anyone willing to give a detailed outline enabling me to write the program myself? I simplified the assignment and will describe it in terms of algorithms. background The program …

Member Avatar for Salem
0
120
Member Avatar for johnyjj2

Hello! I just began my intern in the company, it is after second year at the technical university so I've got some knowledge about advanced maths but I still need and want to learn about automate control, computer science and so on. At this moment I've got to do something …

0
39
Member Avatar for dzhugashvili

Hello. I am working on a Kerberos 5 preauth password recovery tool. Part of an algorithm optimization involves checking the decrypted timestamp to make sure that it equals the year that the packet was recovered before continuing to compute a checksum. If the timestamp does not equal the year the …

Member Avatar for dzhugashvili
0
557
Member Avatar for Hiroshe

Hey guys. I decided to do another project euler problem, and got this problem: [CODE]You are given the following information, but you may prefer to do some research for yourself. * 1 Jan 1900 was a Monday. * Thirty days has September, April, June and November. All the rest have …

Member Avatar for Hiroshe
0
743
Member Avatar for cool_yu2k

Hello! I have another problem in my binary tree. The countLeaves method does not output the correct answer. Instead of outputting 3, it output 1. I don't know what's the problem on the algorithm of my countLeaves method but I guess it is correct. Can anybody help me solve this …

Member Avatar for harsh2327
0
116
Member Avatar for chatee
Member Avatar for ichie06

Make A C Program That Performs The Following Algorithm: (a)Use Scan F To Input The Following Data: -assign Value 26 To Age. -assign Value 80 To Weight In Kg. -assign The Value 183.219 To Height Cm. (b)Calculate The Weight-to-height Ratio. (c)Display A Heading For The Results (d)Display The Results In …

Member Avatar for tux4life
0
109
Member Avatar for sdmahapatra

Hi all C++ expert, I'm new in this field. I've written a program but I need to write it using class. I'm not able to understand where I'll define [quote]a = new double[numElement];[/quote] etc.... and [quote]delete [] a;[/quote] etc... I'm confused where and why I'll define 'new' & 'delete' using …

Member Avatar for csurfer
0
230
Member Avatar for bringoutthejams

I saw a similar problem to this, but couldn't understand the solution the guy used. I have to sort this tunes program in order by title. It seems like there is a problem with my sort algorithm, but I cannot figure it out. Here are the classes. [code] public class …

Member Avatar for JamesCherrill
0
126
Member Avatar for Cloneminds

I need to make a program which uses 3 parallel numeric arrays, references each other, then displays the price and quantity of the supplied product id. It gives me an error message on line 36 about my != searchforID, can anyone enlighten me as to why? [code=C++] //Ch11AppE12.cpp //Displays the …

Member Avatar for Cloneminds
0
247
Member Avatar for funjoke88

1. Write an iterative and a recursive version of the Fibonacci series algorithm. You need to ensure the correctness of the both algorithms. Both algorithms should produce similar output if given a similar input. a. Measure the performance of the two algorithms by measuring the time for both algorithms to …

Member Avatar for NathanOliver
0
470
Member Avatar for AirGear

Sir, i have a numerical method project. I want to be different, so i try to make a program that can read user input, ex : sin(x+3)^(x*3^x), and find the root of the equation. I already implemented Reverse Polish Notation, and also shunting-yard algorithm. But, i found out that all …

Member Avatar for AirGear
0
169
Member Avatar for GAYATRISweet

Below error occur while deploying on server.while it work on local network . [COde]Server Error in '/' Application. -------------------------------------------------------------------------------- Validation of viewstate MAC failed. If this application is hosted by a Web Farm or cluster, ensure that <machineKey> configuration specifies the same validationKey and validation algorithm. AutoGenerate cannot be used …

Member Avatar for kvprajapati
0
114
Member Avatar for nanchuangyeyu

Hi, I know the return value of generic search algorithm "find()" is of iterator type. Now how can I output the return value as numeric type? For example: [CODE] short myArray[4] = {2,1,3,7}; vector<short>mVec(myArray,myArray+4); vector<short>::iterator found; found = find(mVec.begin(),mVec.end(),2); [/CODE] In this code the variable found will be assigned the …

Member Avatar for StuXYZ
0
268
Member Avatar for MktgRob

I just was reading in one of my linkedin groups that there is word that Google updated their PageRank Algorithm beginning around June 23rd. I also read that this is about one month after the last update. Has anyone else heard this and what are the implications of this? I …

Member Avatar for HazeyDaze
0
123
Member Avatar for mrgreen108

I have a slight homework problem that is giving me some trouble. We have to write the algorithm for subtraction using different bases as a possibility in a program that uses calculator registers. The following is the provided prototype: bool subtractRegisters( int registerX[], int registerY[], int registerZ[], int base ); …

Member Avatar for vmanes
0
198
Member Avatar for doublebond

Hi Guys, Please help me in doing this. I am trying to read a file using fstream, but my prof wants me to do the same using hash table, which i have know idea. Please tell me hw can i do the same. The file contains huge data like the …

Member Avatar for csurfer
0
1K
Member Avatar for TrintiyNoe

[CODE]#include<iostream> #include<vector> #include<sstream> #include<algorithm> #include<cmath> #include<string> using namespace std; class ComboLength { public: int howLong(string moves) { vector<int> cc; int i,j,k=0; for(i=0;i<moves.size()-1;++i) { if(moves[i]==moves[i+1]) //Error k++; else cc.push_back(k); } return *max_element(cc.begin(),cc.end()); } }; [/CODE] I get a segementaion error in line if (moves[i]==moves[i+1]) any idea why?

Member Avatar for Laiq Ahmed
0
121
Member Avatar for andreivanea

Hello. I am writing a program that uses a List<T> object to retain a list of int[] objects. [CODE=C#] private int[] numbers = new int[9]; private List<int[]> theList = new List<int[]>(); [/CODE] It's basicaly a backtracking algorithm that constructs the [I]numbers[/I] object, which contains a permutatio of the numbers 1..9, …

Member Avatar for Poab9200
0
6K

The End.