3,815 Topics

Member Avatar for
Member Avatar for prashanth budur

Hello Sir, Iam working on encryption and decryption, now am able to do encryption(DES) i.e it saving in db successfully(as encrypted) bt am failing to do decryption. wt is my doubt is while encrypting am using some secret key to encode the string(say password), that key is generating at that …

0
53
Member Avatar for ckid

HI friends!! I am very new to this type of groups, and this is my first post to this group, before asking u all a help I am just posting this code to u all, , please respond for this code Huffman algorithm is one used for image compression and …

Member Avatar for nilu28
0
3K
Member Avatar for millionfires

hey i am trying to implement the diffie hellman key exchange algorithm in matlab. my problem is this: the program works just fine for numbers upto 5 digits, but after that it just sort of stops working. thing is i need to deal (multiply,exponentiation,modular arith etc.) with really big numbers …

0
95
Member Avatar for NathanOliver

Hey All, I just finished my code and it seams to work fine. I'm looking for advice on improving it or making it easier to understand. Its not Fully complete because I only have to set up to take in a number less than 2147483648 because i am using an …

Member Avatar for vijayan121
0
167
Member Avatar for Zvjezdan23

[CODE]#include <iostream> #include <string> #include <vector> #include <algorithm> using namespace std; string reverseStr(string& x); int main() { // Array for your words vector<string> words; // Your Words words.push_back("I"); words.push_back("won"); words.push_back("ten"); words.push_back("tickets"); words.push_back("for"); words.push_back("a"); words.push_back("rock"); words.push_back("concert"); words.push_back("in"); words.push_back("the"); words.push_back("park"); words.push_back("for"); words.push_back("this"); words.push_back("Friday"); vector<string>:: iterator myIter; vector<string>:: const_iterator iter; cout << "Sentence …

Member Avatar for Zvjezdan23
0
183
Member Avatar for Asif_NSU

i will be given a set of any length and my program will have to produce the power set. For example: input: c d e output: empty c d e cd de ce cde total number of subsets: 2^3 = 8 I will try to write my own code, but …

Member Avatar for elemes
0
1K
Member Avatar for MasterGberry

I am making a simple card game, trying to shuffle a deck of cards that i made with a map. [CODE]std::map<int, std::string> theDeck;[/CODE] How could I go about shuffling the items in the deck? I am having issues figuring out the algorithm. This is what I tried, but didn't work. …

Member Avatar for MasterGberry
0
1K
Member Avatar for gf_123

hi I want to write cellular automata lee algorithm (I call it wave method) which searches for the shortest path between 2 points.In lee algorithm the user specifies the weight one for all grid points and the algorithm will find thepath with the lowest number of grid points(it means the …

Member Avatar for hkdani
0
145
Member Avatar for ctsmith84

I'm stumped on an exercise problem at the end of a chapter on my book. An earlier problem had me create an algorithm to calculate compound interest (this is using C# by the way). That was simple enough. A few questions later, it mentioned how some other languages don't have …

Member Avatar for ctsmith84
0
201
Member Avatar for Valaraukar

Hey guys, So my Maths has obviously gotten a little rusty and I seem to be struggling with what should be quite simple.... The scenario: I have lines being drawn in 3D space that are calculated using an algorithm. These lines are actually made up of multiple line segments to …

Member Avatar for jonsca
0
820
Member Avatar for jamd200

This program allows one to use many different sorting algorithms to sort an iterable. [code=python] from time import* from random import* #GNOME SORT def gnome_sort(lst): pos = 1 while pos < len(lst): if lst[pos] >= lst[pos-1]: pos = pos+1 else: temp = lst[pos] lst[pos] = lst[pos-1] lst[pos-1] = temp if …

Member Avatar for jamd200
0
347
Member Avatar for diffuse

Hi all, I know you guys get a lot of questions regarding hangman game programs and I'm sorry to bog down the boards with another question regarding the game. I've combed through previous posts trying to see if my issue has been resolved and I have been unsuccessful. Here is …

Member Avatar for WaltP
0
268
Member Avatar for Logert

My project is to optimize wind turbine placement in a given area. In order to do this, I'm using both a wind simulation program (openWind: awsopenwind.org) and the a genetic algorithm code base (Evolving Objects: eodev.sourceforge.net). The process should work like this: openWind will randomly place wind turbines in its …

Member Avatar for mike_2000_17
0
217
Member Avatar for yen chin

Hi, I'm yen. Recently, I am doing my thesis project on the topic of Genetic Algorithm with Integer representation. Anyone can help me to write a simple program to solve the Travelling Salesman Problem by using Genetic Algorithm which is in integer representation? The task is to find the shortest …

Member Avatar for jonsca
0
123
Member Avatar for sidra 100

plz help me in my algorithm to first enter data in array then making a min heap out of it [CODE]#include <iostream> #include <stdlib> using namespace std; class Heap { int currentsize; int *array; int capacity; void heapsort(int[],int); public: void buildheap(); void isempty(); void isfull(); int getsize(); } main() { …

Member Avatar for Duki
-1
119
Member Avatar for sreagvle

Hey all, I'm currently finishing up in college and about to start a career as a software engineer. Apart from the experience I will gain in my job (should be primarily c++), I was wondering if there is any other experience someone might recommend I could gain in my own …

Member Avatar for barryt
0
147
Member Avatar for reyarita

ALGORITHM TO LOAD A JOB IN A FIXED PARTITION 1. Determine job's requested memory size 2. If job_size > size of largest partition Then reject the job print appropriate message to operator go to step 1 to handle next job in line else continue with step 3 3. Set counter …

0
80
Member Avatar for vienne

[B]I'm having a problem with my sorting algorithm. before I made quick sort which used insertion sort, but I don't want to use this insertion sort. I want to use recursive algorithm. Also, I want to get new idea, so If you know any quick sort algorithm, reply for me.Please~ …

Member Avatar for shashankc
0
268
Member Avatar for da10x

Hello people, I have an assignment to do and I have no idea how to do it. First: I have to modify this program to prompt the use for a word and display how many times that word appeared in the input file. When the user hits RETURN, the program …

Member Avatar for dynaflex
0
194
Member Avatar for jk09

what is meant by infinite time complexity??? i mean, does it imply that the problem cannot be solved by the algorithm as it takes infinite time..??:?:

Member Avatar for Narue
0
76
Member Avatar for dynaflex

I need to write a program that implements this algorithm. create a hash table. for each word in words.txt sort the letters in word and use that as a key enter the(key, word) pair into the hash table prompt the user for a string while the string s not empty …

Member Avatar for TrustyTony
0
99
Member Avatar for leecheneler

I am in the process of writing the best first algorithm. i have not yet implemented the "best" part of it to select only the best node to expand. currently it is expanded each node created. However the while loop expanding the nodes stops executing before it should thus never …

Member Avatar for LTouch
0
2K
Member Avatar for inilahs

Hello all ! am doin a project in data mining field. A part of it is to implement apriori algorithm in documents. in the algo the first step is to remove the stop words in the documents and then to find the frequent itemsets.. i ve implemented till this.. now …

0
62
Member Avatar for ankit,joy

I have to [B]sort around 12GB of integer data[/B] which is kept in a file. I have a [B]1 GB RAM[/B]. How should I do it? The problem is I cant read whole of data together and store it in a vector because it goes out of memory bound. Which …

Member Avatar for arkoenig
0
520
Member Avatar for prosperr

1. Bob has n friends: a1,a2,...,an, Bob has also a list L which is a subgroup of {a1,...,an}x{a1,...,an} which specify which of the friends knows each other (i.e. the pair (ai,aj) belongs to L if and only if ai knows aj, ai knows aj if aj knows ai). Bob organize …

Member Avatar for mrnutty
0
124
Member Avatar for NaturalSwtHeart

I was just wondering what would be the best sort algorithm for sorting both a small array and a large one. Or if you can point me to a few efficient ones that can still do both that would be nice. small <=30 Also is there a cap that java …

Member Avatar for NaturalSwtHeart
0
129
Member Avatar for Frederick2

Here is the full code relating to my performance problem I’m having with my operator+= which I described in this adjacent thread…. [url]http://www.daniweb.com/forums/thread340734.html[/url] As a quick review, I’m finding that the operator+= function in the Standard C++ Library’s String Class, i.e., <string>, is performing almost impossibly fast compared to the …

Member Avatar for Frederick2
0
556
Member Avatar for sanjeevkr
Member Avatar for Frederick2

Hello Vivayan! Its taken me this long to understand your sophisticated program you gave me using STL (Standard Template Library) iterators, container classes, algorithms, and the works! I’m truly grateful for the time you took to develop this program for me, and it inspired me so much I’ve decided to …

Member Avatar for Frederick2
0
181
Member Avatar for Frederick2

I don’t know why my operator += and operator + string class member functions are taking so long to do their job and are so inefficient compared to the Standard C++ Library String Class. Its not that they don’t work; its just that they are slower by a factor of …

Member Avatar for Frederick2
0
586
Member Avatar for XerX

In a statistics book there is an algorithm of generating pseudo-random numbers with uniform distribution [0,1]. It says: I. Enter an initial variable X positive integer. II. Multiply X by variable "a", which should be at least 5 digits long. III. Divide a*X by value p (positive integer). IV. Take …

Member Avatar for mrnutty
0
4K
Member Avatar for Nitin Daphale

Hi all, In my site, there is timeout session 30 minutes. After 30 minutes as I press on logout. Exception([I]Validation of Mac fialed.If thos applicationis hosted by a web farm or cluster,ensure that <machinekey>configuration specifies the same key and validation algorithm.Autogenerate cannot be used in cluster.[/I]) occurs in my page …

Member Avatar for Nitin Daphale
0
118
Member Avatar for pradeesh.login

can anybody tell me the detailed description about Dynamic Time Warping Algorithm for speech recognition in an stepwise manner so thet i would easily understood?????

0
58
Member Avatar for xibnoe

Iam looking for source code of c4.5 algorithm.. its part of my school project, please if u have it. let me know!!

Member Avatar for shajis001
0
101
Member Avatar for ziggystarman

Hi Just written a small C++ program to try the Public & Private Key Algorithm process, the program seems to function properly as intended in that it decrypts a message sent from Bob using Alice's Public key. [CODE]#include <iostream> using namespace std; /*********************************************************** XOR Process for both encryption/decryption processing ***********************************************************/ …

Member Avatar for ziggystarman
0
4K
Member Avatar for sheenarbw

Hi all I'm writing a wpf app that requires a user to log in. I thought this would be a pretty easy thing but it's hurting me. I can't find any error, I'm hoping someone can point out the silly mistake I made or the obscure gotcha I wasn't aware …

Member Avatar for Teme64
0
176
Member Avatar for jaydipsinh

I am using Soap [code=xml]<ds:SignedInfo> <ds:CanonicalizationMethod Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"/> <ds:SignatureMethod Algorithm="http://www.w3.org/2000/09/xmldsig#rsa-sha1"/> <ds:Reference URI="#id-4453123"> <ds:Transforms> <ds:Transform Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"/> </ds:Transforms> <ds:DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha1"/> <ds:DigestValue>'.$ssDigest.'</ds:DigestValue> </ds:Reference> </ds:SignedInfo> <ds:SignatureValue>...How to calculate Signature Value.....</ds:SignatureValue>[/code] .............. Thanks in advance

Member Avatar for jaydipsinh
0
994
Member Avatar for andydeans

hi, i have just applied a view to my database and when tested works fine if their is a value from the tasks and allrenewals tables of "clientID" or clients_ClientID however i need to be able to view the entries even if the clientid or clients_clientid from the 2 tables …

Member Avatar for andydeans
-1
113
Member Avatar for jaydipsinh

In soap header part [code=xml]<soapenv:Header> <wsse:Security xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd"> <wsse:BinarySecurityToken EncodingType="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-soap-message-security-1.0#Base64Binary" ValueType="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-x509-token-profile-1.0#X509v3" wsu:Id="CertId-9502902" xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd">....data....</wsse:BinarySecurityToken> <ds:Signature Id="Signature-12345678" xmlns:ds="http://www.w3.org/2000/09/xmldsig#"> <ds:SignedInfo> <ds:CanonicalizationMethod Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"/> <ds:SignatureMethod Algorithm="http://www.w3.org/2000/09/xmldsig#rsa-sha1"/> <ds:Reference URI="#id-4453123"> <ds:Transforms> <ds:Transform Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"/> </ds:Transforms> <ds:DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha1"/> <ds:DigestValue>'.$ssDigest.'</ds:DigestValue> </ds:Reference> </ds:SignedInfo> <ds:SignatureValue>.......</ds:SignatureValue> <ds:KeyInfo Id="KeyId-98765432"><wsse:SecurityTokenReference wsu:Id="STRId-33454994" xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd"> <wsse:Reference URI="#CertId-9502902" ValueType="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-x509-token-profile-1.0#X509v3"/> </wsse:SecurityTokenReference> </ds:KeyInfo> </ds:Signature> </wsse:Security> </soapenv:Header>[/code] Thanks in advance

0
118
Member Avatar for nemcsakbali

Hello everybody! I could really use some advice in c#! I have the following homework in programming, please help me choosing the easiest one( I only have to make one of them) or just tell me some tips on how to start on them. If you have some codes like …

0
55
Member Avatar for ziggystarman

RE: Using C++ MD5 hash for software verification & licence files Hi The last few days I've been searching the net for ideas about building in some sort of software protection/security schema within a development for educational but perhaps more importantly to understand good & bad security coding/practises do's & …

Member Avatar for ziggystarman
0
312
Member Avatar for arpiar

Hy everyone ...i need some guidance to make a program.I need to implement NSGA2 algorithm for vector optimization.The optimization function must be selected through a list.And i need to display de Pareto front.

-2
47
Member Avatar for eminhanif

I've been having some problems trying to extract the GET variables from URL. This is what the url looks like: www dot example dot com/live/t00/250lo.gif?tr7zt8&uid=4ccc6cd4fc7cc630&CXNID=2000001.5215456080540439072NXC&pub=telegraphmedia&rev=86981&si=4d28ac59f9a3d32e&lc=MDAwMDBFVUdCRU4yMzE4MTgwNDAwMDAwMDBDVg%3D%3D&ln=en&pc=tbx&uf=0&pi=1&dp=www.telegraph.co.uk&fp=news%2Fuknews%2F8248083%2FFather-drowns-while-trying-to-rescue-dogs.html it's a bit long, but basically each variable is separated by an ampersand, so we have, for example: uid=4ccc6cd4fc7cc630&CXNID=2000001.5215456080540439072NXC&pub=telegraphmedia&rev=86981 which translates into: uid=4ccc6cd4fc7cc630 CXNID=2000001.5215456080540439072NXC pub=telegraphmedia …

Member Avatar for vinayakgarg
0
163
Member Avatar for iamuser_2007

[CODE]// Cubic conversion of Borwein's Algorithm // Each iteration converges // cubically against 1/pi; // that is, each iteration // approximately triples the // number of correct digits. // Program written by ROBO_HEN5000 // Algorithm complements of Wikipedia. #include <iostream> #include <cmath> using namespace std; int main() { float a; …

Member Avatar for Sokanas
-3
140
Member Avatar for stereomatching

[code] std::copy (std::istream_iterator<string>(cin), // beginning of source std::istream_iterator<string>(), // end of source std::ostream_iterator<string>(cout,"\n")); // destination [/code] how could I quit from it? besides, if I want to copy partial data from std::ifstream what should I do with the copy algorithm? following code would copy all of the data into the …

0
61
Member Avatar for Ralphael

Please i need to write a paper on the introduction to the analysis of algorithm can some one help me that i am having trouble finding resources

Member Avatar for soutrik
0
51
Member Avatar for CLina

Hi profissionals! Happy new year : ) .... I have a binary tree project and I need to convert a fully parenthesized arithmetic expression to a binary tree. I was thinking of this algorithm: 1. input a string of expression. 2. breakdown the string and creat new node for each …

Member Avatar for CLina
0
695
Member Avatar for JJHT7439

Alright, I have a problem with a program that I am trying to write. The purpose of the program is to solve 1 specific algorithm. That algorithm is send + more = money. The program is supposed to find the value of each letter and return them to you. I …

Member Avatar for TrustyTony
0
336
Member Avatar for sahil1991

I was implementing this algorithm of parsing a mathematical expression....but dint meet the required result........i have restricted the string to take one digit numeral only i think i am suffering because of this type conversions between int and char...but don't know what to do... here's the code.. //parsing.cpp #include<iostream> #include<conio.h> …

Member Avatar for vinayakgarg
0
108
Member Avatar for thr

hello i want to write dots and boxes game with artificial inteligence I want use alpha beta pruning and minmax algorithm to develope this game but this algorithm use heuristic function and i haven't any idea for this function please help me to create heuristic function. thanks

0
58

The End.