3,815 Topics

Member Avatar for
Member Avatar for chiurox

Hi, I'm writing this code where I want to match a string with a signature. A wildcard '?' would mean it can skip 1 character. A wildcard '*' means it can skip 0 to 32 characters. For example, say I have: string "screwed" and a signature "screw?d" These two would …

Member Avatar for Ancient Dragon
0
456
Member Avatar for leestotch

Hey friends, Started c++ not to logn ago and took right to it, up until now I have had no problems whatsoever. Now, with my specific assignment I have absolutely no idea what do to. I dont even know where to begin. I feel foolish and embarrassed and I'll i …

Member Avatar for VernonDozier
0
123
Member Avatar for inzomniac

Hi folks, I hope this is the right place to post this. I'm about to start teaching a course in Operating Systems Theory. I'll have to cover from the basics (What's an OS, some history, hardware basics, etc) to the more complex and interesting stuff (threads, processes, memory management, deadlocks, …

Member Avatar for inzomniac
0
165
Member Avatar for ezkonekgal

I have a problem: 1.) How do you insert a sequence of integers into a binary tree? does anybody have an algorithm for it? like input : 1, 5, 3, 4 ,2 binary tree: 1 5 3 4 2

Member Avatar for verruckt24
0
379
Member Avatar for ahfan_85

I have a question here: Complete a program that performs following operations by using C++ programming: a.Enable user to create and manipulate a list of items (must be able to read integers, characters and strings). b.Enable user to sort the list. (any sorting algorithm except naïve sort) c.Enable user to …

Member Avatar for ahfan_85
0
127
Member Avatar for sonicstage

I have this algorithm from my c++ class that i can't get to work, it doesn't compile (mainly because is wrong) and I have no idea on how to fix it. It supposed to be a global function that takes an array of 10 and gives 10 random numbers from …

Member Avatar for Freaky_Chris
0
108
Member Avatar for mimis

I am trying to solve an algorithmic problem. First of all the user inputs the coordinates of some nodes. I have to go to the node with the biggest x( let name it E) and then to return to the start that will always be the node (0,0)( let name …

Member Avatar for mimis
0
371
Member Avatar for thacravedawg

I currently have a pretty basic data application that I intend on adding a good deal of functionality. The application is a windows form app using a an access database connected through the oledb method. Everything works fine, until the iterations are extended to very large numbers. For example, it …

Member Avatar for thacravedawg
0
167
Member Avatar for Ehtasham

i am a post graduate student in computer science.for sudying purpose i have a requirment of matlab code for image registration using simple genetic algorithm. which is helping me to understand the step of image registration and steps of genetic algorithm. i will be vary greatfull to helping for the …

Member Avatar for Rashakil Fol
0
28
Member Avatar for gayatridas

[QUOTE=Kerry;41762][COLOR=Blue]Hello, my name is kerry and i just sign up .Well, my question is how do reverse a number input by user using recersive function.Thanks for the help. [/COLOR][/QUOTE] I have a sequence of 5 numbers. I want to write it in reverse order. Could you please help me that …

Member Avatar for moonw3ll
0
139
Member Avatar for binamy1

I have been developing my own compression algorithm for my school project.It is like LZ77 but uses fixed blocks,and a dictionary containing the position of the repeating block (dic.inpos)& where it is to be copied(dic.charpos);I am using Gnu C++,The program crashes or gets stuck on initializing in.. Also the program …

Member Avatar for binamy1
0
140
Member Avatar for heysebas

Hi all, I've written a Java programme with a while(true) loop. Within this while loop, it's a whole lot of process which runs indefinitely (because I'm doing some image recognition and doing some genetic algorithm testing.) I first tested it in NetBeans, by clicking on 'Run'. Everything went well, but …

Member Avatar for masijade
0
92
Member Avatar for noty1

Im looking for a code that shows how the directed graph is being implemented in C++ classes.Our teacher told us to use the queue algorithm. all i know is the concept of directed graph and its edge() and vertex(). But to create a program that shows how the direct graph …

Member Avatar for siddhant3s
0
91
Member Avatar for JustLearning

Ok here is the code I am trying to compile remotly on a linux machine I am getting quite a few compile errors when I try to compile this Here is just a sample of the errors I am getting. [code]-bash-3.2$ gcc -o lemastsGCD lemastsGCD.cpp /tmp/cca8g62Q.o: In function `__static_initialization_and_destruction_0(int, int)': …

Member Avatar for JustLearning
0
177
Member Avatar for rudasi

Hello, I just had a midterm and there was a question where we had to right a program which can calculate all the numbers which form quadruplets. A quadruplet would be x^3+y^3+z^3=a^3 The program should only run till a<25 also, 0<x<y<z<a at the end we had to output how many …

Member Avatar for siddhant3s
0
207
Member Avatar for Rick1980

Hi all, I'm trying to figure out the runtime complexity of an algorithm I created. I narrowed the basic problem down to two nested sums. However I need the Big O notation of this problem. I converted the formula into the following nested loops. I have the feeling that this …

Member Avatar for Rick1980
0
87
Member Avatar for kavingray

A simple game written in Python using Alpha-beta pruning algorithm. It’s also an experimental program for my py & wxpython study.I just start to study python couple months ago:) So..all the suggestions about this game will be welcome. more details and download links plz visit: [url]http://www.kavingray.com/blog/simple-tic-tac-toe/[/url] written by Python 2.5.2 …

0
65
Member Avatar for JMChurch25

Hiya, I wouldn't really say that this is an actual problem as more of an inquiry in to people's experiences and such. I have personally been interested in Computer Science since high school and have always wanted to work in the field as my major and such and have learned …

Member Avatar for Rashakil Fol
0
153
Member Avatar for thijo

Hi, I got this code from My trainner.He asked me to debug.I tried my level best to debug. but still it shows the K meanspoints class needed error. This alone i could not solve. I also tried with vector class, but it shows error. please help me. [code=java] /* Implements …

Member Avatar for verruckt24
0
115
Member Avatar for nirav bhatt

[CODE] #include <cstdlib> #include <iostream> #include <string> #include <math.h> #include "utils.h" #include <float.h> #include "onboostnn.h" //using namespace std; /* Constructor function. This sets the training example file and number of base models. It also sets to NULL other variables to be used later. */ onboostnn::onboostnn(datafile* examples_to_train, long new_num_base_models, int new_num_epochs, …

Member Avatar for ArkM
0
121
Member Avatar for Robdale

Hello Dear Friends, I have noticed that many new members create threads just to ask about the terms of SEO. Rather than creating new threads why not to create one thread that includes all the SEO terms and would be easier to new members. Please add your terms if you …

Member Avatar for Robdale
0
466
Member Avatar for forzadraco

please tell me the algorithm serveruptime.com and how ping and get ping result in php [url]http://www.kampanye-damai-pemilu-indonesia2009.comyr.com[/url]

Member Avatar for cwarn23
0
97
Member Avatar for rafkay

Hi .. anyone can help me out to solve this problem... coding to read the file... 1. this coding is well working... can list down all the data in dataM.txt [CODE]ifstream OpenFile("D:\\dataM.txt"); int a; if(!OpenFile) { cout << "While opening a file an error is encountered" << endl; } else …

Member Avatar for vmanes
0
220
Member Avatar for abhi_elementx

Hello folks, I m trying to simulate the RSA algorithm. This is some of my code: [ICODE] System.out.println((int)Math.pow(6, 5) % 119); System.out.println((int)Math.pow(41, 77) % 119); [/ICODE] The first results in 41 while the second results in -9 when the expected shud be 6. Whats wrong?

Member Avatar for stephen84s
1
169
Member Avatar for sonicstage

Hi I'm a new user of c++ and our professor gave us a homework problem where we have to find the standrad deviation, the min, the max and the avg of an array of numbers, here is what I have so far but now I'm really stuck trying to make …

Member Avatar for verruckt24
0
100
Member Avatar for JMChurch25

Hello, almost done with the Sudoku Solver but dealing with a couple last glitches in the solve method that supposed to use a backtracking algorithm. It is printing out some weird values and outputs. I've got the program printing out the unsolved puzzle fine but the "solved" puzzle is nothing …

0
65
Member Avatar for ghaith

Hey, I'm working on a project where i have to visualize an algorithm, i have to generate graphs in the application, and it must be using Gxl, i searched for manuals on gxl and java, i found jgraph, but I'm actually not sure where to start on that, let's say …

0
67
Member Avatar for mimis

Hi, i am trying to make an algorithm that will read the nodes of a graph. Then i should find the shortest path that i have to follow in order to pass from all the nodes. I am trying to make it so the algorithm will calculate every possible path …

Member Avatar for mimis
0
405
Member Avatar for noty1

im looking for a code that shows how the directed graph is being implemented in C++ classes. i havent figured out the algorithm to be used. all i know is the concept of directed graph. edge() and vertex() function will be created in a class. all i need to know …

Member Avatar for VernonDozier
0
107
Member Avatar for breatheasier

Hi, I'm making a program in VPython to simulate the motion of particles. It's fairly simple in theory but I'm having some problems with my lists of particles. What I'm trying to do is make sure that the particles do not overlap, and regenerate a position if they do overlap. …

Member Avatar for BearofNH
0
157
Member Avatar for moshe5

Hi All! I am currently stuck on a c++ program I'm working on. So the program will have the user input data into a 2-d array. sample dialogue: BLOB SIZE CALCULATOR- Enter coordinates for each filled cell; e.g 2 3 Do not enter commas or parentheses. Enter -1 -1 to …

Member Avatar for Lerner
0
115
Member Avatar for forzadraco
Member Avatar for dmanw100

Hello, I am working on a project that requires a set of points to be sorted by their angles in relation to the x-axis. The angles, which are in radians, store their angle as a double value. My insertion sort algorithm is failing to properly sort the points based on …

Member Avatar for dmanw100
0
103
Member Avatar for skatamatic

Hello all, I'm writing an 'Asteroids' clone for an assignment at school. I'm trying to figuire out an algorithm to 'wrap' the asteroids/bullets/ship when it collides with the edge of the screen. I've written an algorithm and it works alright, but has some flaws. It will always wrap to the …

Member Avatar for skatamatic
0
144
Member Avatar for sciwizeh

So, working on my ongoing Falling Sand Game project, I find that the best way to make the heat spread evenly is to use distances from heat sources. the problem is that the only way i can think to do that is brute force. Here's a simplified version of my …

Member Avatar for Tech Tiger1
0
131
Member Avatar for DJPlayer

asked to do something that is I suppose a little strange. maybe because it's out of the blue and never tried it before. Essentially take a .txt file and split it up into 4 files. (no criteria on size, readability etc.. etc. ) Just split it up.. give each a …

Member Avatar for DJPlayer
0
118
Member Avatar for srikanth595

i want project in data mining using apriori algorithm by using VB.NET so plz send me with source code to this id plz <EMAIL SNIPPED>

Member Avatar for Minolwen
-3
38
Member Avatar for xodus1

Hi, I am trying to build an SQL statement for a reporting tool, the idea is to count from multiple statements and group my output by date, I've also learnt that GROUP is an intensive statement - 'not sure' again. I'm a newbie to PHP so please help. I just …

Member Avatar for digital-ether
0
68
Member Avatar for msshapira

Hi all, I have written recurisve pathfinding fuction from matrix[i][j] to matrix[x][y]. however, it's not returning the right values. It is supposed to return the minimal cost from 2 points using any possible path. all ".value" are the cost to use this Node all ".bestFromStart" are the max of long …

Member Avatar for nucleon
0
111
Member Avatar for T.N.Sharma

Hi got something magical. node3 ( a variable) seems to point itself when i have not mad it so. Please help me understand this behavior. It seem to me like magic. And do provide with if any suggestion to correct the problem. [CODE] #include<iostream> #include<vector> #include<algorithm> #include<string> #include<fstream> using namespace …

Member Avatar for T.N.Sharma
0
139
Member Avatar for forzadraco

anyone can help mo to tell the algorithm how to make server uptime application like serveruptime.com? [url]http://www.duniaislam.site50.net[/url]

Member Avatar for BeachyUK
0
113
Member Avatar for ajhais

Given a n*n grid with free spaces and obstacles in the form an n*n integer matrix. We need to find shortest between any two given points (x1,y1) and (x2,y2) through the free spaces. We are not allowed to move in diagonal. Please help me figuring out an algorithm for doing …

Member Avatar for Prabakar
0
105
Member Avatar for drjay1627

hey, given one side and an angle how do you calculate the other sides and angles in a right angle triangle in c++. I'm basically looking for an algorithm. Thanks drjay

Member Avatar for StuXYZ
0
113
Member Avatar for noob.pas

okay, i've been looking for a nice algorithm for this one for a long time, all i find are cpp, java and c# code. i've been trying to reverse the order of each word in its place, but i don't seem to be able to do so. i tried with …

Member Avatar for tylcoatc
0
1K
Member Avatar for rlaknar

I have written a program in java for RSA algorithm to encrypt a string and decrypt on receiver side. RSA public key and n value are announced to receiver by sender. Then encryption process begins. The RSA program in sender side returns BigInteger which is the encrypted string and I …

Member Avatar for rlaknar
0
113
Member Avatar for scru

This function is supposed to take an integer that contains an rgb value, extract the value of each channel, and then return that calculated luminance of the pixel. As it stands, the performance of this function is not fast enough. Looking at it, I can't think of anything else that …

Member Avatar for vegaseat
0
153
Member Avatar for dreadrocksean

Hi. I am having trouble understanding why, if I use setEnabled() inside a button listener, my end result where I update the text inside a text box doesnt work the same way as when I comment out the setEnabled() lines. I am making a simple pi generator based on a …

0
74
Member Avatar for peacerosetx

Greeting All, Peace. New to this forum and am confused about how to approach data analysis of variables with C++. My question I is am simply going to do simple descriptive statistics (mean, mode, variance), and a little more complicated chi square / correlation (Pearson). The approach that I am …

Member Avatar for Lerner
0
186
Member Avatar for zxz

Hello , im a very new to programming and i have a Question please. i must write a program in Assembly the Question is : "after giving a maximum of 30 positive numbers the program must output if the given number (Sequence) is a palindrome or not.( intering "0" or …

Member Avatar for afas87
0
117
Member Avatar for Noliving

The purpose of a reach algorithm is to return the variable (or set of variables) that is defined by the given node. Correct?

Member Avatar for verruckt24
0
63

The End.