3,815 Topics

Member Avatar for
Member Avatar for Alex Edwards

I looked up the method class and thought that it might be useful, but unfortunately Method objects must be public to be invoked. I'm just curious of when I'd actually really need to use the Method class. Maybe to create an array that used a type of algorithm to fire …

Member Avatar for dkerberwra
0
86
Member Avatar for myleila

[B]I have problem with dijkstra algorithm [/B] [B]I want to write it in c++ and can not describe it in c++ //[/B] [B]please help me[/B]

Member Avatar for jephthah
0
185
Member Avatar for zoner7

So I decided that I wanted to make a Sudoku creator and solver for fun. My plan is to fill a sudoku board with random, however, compatible answers using brutefruce. I simply check random numbers against the two prerequisite rules for a legitimate Sudoku: a given cell cannot contain the …

Member Avatar for Duoas
0
178
Member Avatar for msupstream

Wow, my first computer related forum ever! In the computer lab the guys have given me the nickname MsUpstream, as I work on implementing a streaming algorithm in C++ as part of the work for my master thesis. In other words, I am a Computer Science master student in the …

Member Avatar for selfhelpebooks
0
213
Member Avatar for ranjithsnair
Member Avatar for twilightwolf90

I am creating a properties JFrame for use in my GUI, and I wanted to save all of the data inputted into the frame into a file called config.properties. The Poperties class already has several convienent methods to save, load, and get properties, but it stores all the data in …

Member Avatar for twilightwolf90
0
185
Member Avatar for nurulshidanoni

Dear all, I have this code and this data...but i want to sort the sum1 in descending order..but my problem is..i want to sort many array....like this.. after sort 3: ............. 46 1: .............. 25 2:..................20 how to sort in descending order together with the row? 1: 5 6 7 …

Member Avatar for nurulshidanoni
0
118
Member Avatar for kohkohkoh

I tried to search over this site and others as well. But couldnt help me to solve the above matter. Actually i want to do a searching algorithm in a PDF file. I tried to use: [EMAIL="%@Import"][COLOR=seagreen]Import[/COLOR][/EMAIL][COLOR=seagreen] Namespace="System.IO"%> Sub page_load(ByVal Sender As Object, ByVal e As EventArgs)[/COLOR] [COLOR=seagreen] Dim filetoread …

Member Avatar for raydenvm
0
134
Member Avatar for roshini45

i know everyone hates hw help but i just need some help getting started with writing the functions. here is what i have so far: [code] /* ATM Simulator Function Source File atm.c ** ** CSC-234 (M. Hutchenreuther) John Jones ** Assignment 8 Part A Section 1 ** November 9, …

0
71
Member Avatar for wellibedamned

Okay, so i have an idea...that looks like it should work. I'm supposed to be able to multiply for example: 1234567812345678912345678*1234562345673456. My idea was to put each number into a string, and then make a matrix to store the values of each digit multiplied by each digit... i'll put an …

Member Avatar for iamthwee
0
412
Member Avatar for johnkurtz

Hey, could anybody lend me dijkstra's algorithm in pascal? (commented please). I have searched for it on Internet and I haven't find it. Thanks.

Member Avatar for luis_ramos
0
181
Member Avatar for suriname0

Hello, I have been self-teaching myself Java for the past few weeks and I would like a little help. Without an instructor or ample code snippets that are readable to me, I've been finding it difficult to know if my coding lacks the polish and efficiency necessary. Here is the …

Member Avatar for suriname0
0
112
Member Avatar for m.cliter

hello, I m working on a Ford-Fulkerson algorithm to get the Maximum flow in residual graph, and min-cost algorithm. My representation based on adjacency-lists approach, where I keep track of all the vertices connected to each vertex on a linked list that is associated with that vertex. So far I've …

0
61
Member Avatar for kalpana0611

Hi I am kinda unsure of how the processing time should be computed for a cluster. Say, for example I have a cluster of 2 machines and I run a visualization application, I need to record the processing time of certain parallel algorithms. Okay the question, a) When I run …

0
85
Member Avatar for seeker55

I slacked off in class while my teacher was teaching us how to algorithms and now I have my exams coming up and require help in writing basic algorithms. Please help me understand basic algorithms daniweb community, I'm counting on you :(

Member Avatar for seeker55
0
98
Member Avatar for JochenM

hi folks, i need a library to analyse references of a scientific document. the lib should be able to identify references in the full text (for instance [1], [2], ... or Author A (1995), ... Author B & C (1968), ...) and it should be able to identify the elements …

Member Avatar for JochenM
0
147
Member Avatar for bgbnbigben

So, this is what ive got. Im trying to create a depth first search algorithm, but the problem is ive never been taught this - i dont do programming at school or uni, i try to teach myself but i need help sometimes. Im using a fairly simple iterated method …

Member Avatar for bgbnbigben
1
177
Member Avatar for toolbox03

The problem is with this line inCustomerDetails[i].getCustomerProduct(productName, productID, unitCost, quantityPurchased, x); data.txt 5 Angie Ang S1234567 Y 4 Choco P0001 5.50 2 Rice P0002 10.00 1 Bread P0003 2.00 1 Chicken P0004 7.50 1 program code [code=cplusplus] #include <iostream> #include <fstream> #include <string> #include <algorithm> using namespace std; class Product …

Member Avatar for Nick Evan
0
146
Member Avatar for peachslasher

Hey guys, I need to write a C++ program that use to compare sorting algorithm. I've tried to implement counter on each of <.>, = operations I've encounter in the function (currently i am working on selection sort), however the sum of the counter doesn't really match big O selection …

Member Avatar for Radical Edward
0
281
Member Avatar for hocuz pocuz

[code=c++]//Four In a Row #include <iostream> #include <string> #include <vector> #include <algorithm> #include <cctype> #include <cstdlib> #include <ctime> using namespace std; // global constants const char X = 'X'; const char O = 'O'; const char EMPTY = ' '; const char TIE = 'T'; const char NO_ONE = 'N'; …

Member Avatar for hocuz pocuz
0
111
Member Avatar for Prabakar

I happened to try find the total number of ways a horse can cover all 64 squares in a chess board without visiting a square more than once starting from one corner. All I was able to do was to use a brute force algorithm which run for a whole …

Member Avatar for Prabakar
0
188
Member Avatar for Tigairius

Well, I need a pretty simple code (Lempel-Ziv-Welch compression algorithm) converted from Python to Java. I don't want to run JPython because I don't need it to be interpreted as Java, I need to interpret it myself because I use a scripting language similar to Java, but not exactly the …

0
50
Member Avatar for spaceboy

Here's a program idea that I bet is kind of rare. I am working on developing my psychic abilities (seriously), and I want to write a program to assist me in determining how far my 'quick-pick' lotto tickets are straying from random chance. For example, every day I spend $1 …

0
47
Member Avatar for greg6666

Hi Guys i want to implement iir filter in assembly in c64x processor. preferably fixed point algorithm. Here is the c code of iir filter which i have written. [code=c] #include<stdio.h> void main() { float ip1_seq[10]={1,1,1,1}; float b[10]={0.049,0.074,0.105,0.074,0.049},a[10]={-1.715,1.726,-0.85,0.195}; int len_ip=4,al=5,bl=5; int n,k,i,len_seq=0; float op_seq[10]={0},op1_seq[10]={0},op2_seq[10]={0}; len_seq=al; if(al!=bl) len_seq=(al<bl)?bl:al; if(len_seq!=len_ip) len_seq=(len_seq<len_ip)?len_ip:len_seq; for(i=len_ip;i<len_seq;i++)//padding …

Member Avatar for Salem
0
151
Member Avatar for CoolGamer48

Hey, so I'm making a Breakout game in C++ w/ DirectX, and I'm having some trouble thinking of the ball bouncing physics. The way I've made breakout games before was to have the ball only move at 45 degree angles. This was fairly simple. Just reverse the x or y …

Member Avatar for MattEvans
0
4K
Member Avatar for kako13

Hi, I'm trying to update a file with an information in a binary tree. However my algorithm is working only for one NODE. Any suggestion will be appreciated! [CODE]void Arbol::updateFile() { Nodeptr p = miArbol; // myTree Recorrer(p); cout << "File updated!" << endl; cout << endl; } void Arbol::Recorrer(Nodeptr …

Member Avatar for kako13
0
148
Member Avatar for twgood

I am wodering if i answered these correctly or not? Algorithm Verification Consider the following selection statement where X is an integer test score between 0 and 100. input X if (0 <= X and X < 49) output "you fail" else if (50 <= X and X < 70) …

Member Avatar for jephthah
0
204
Member Avatar for tanha

Hello everybody, The following code I found from another place, and it was in Java Script, so I changed it to PHP, and I dont know: 1. how it is work ? 2. is it work at all? 3. need the algorithm and procedure of it... [CODE] // PERSIAN_TO_JD -- …

0
69
Member Avatar for Blondeamon

Hello guys under a project i have to complete for this semester i have to think and implement a shortest path algorithm other than the ones i have already coded so far for this course , which are: - Bellman Ford - Floyd - Kruskal The whole project is a …

Member Avatar for Blondeamon
0
121
Member Avatar for Spagett912

Once again I have found myself stuck on another problem in assembly langauge because it owns me. I am trying to write a program that uses the Bubble sort algorithm but to make things challenging I am required to use Local Variable. And that must be based off of this …

Member Avatar for Spagett912
0
615
Member Avatar for wam2

I have written a code for maximum power point tracking. The purpose was to create DLL file and use it in a circuit base simulation program. I used Microsoft visual c++ 2008 express and created that DLL file but I only get first value from the created array in C. …

Member Avatar for wam2
0
378
Member Avatar for Punkis448

In this work you will materialise a algorithm that solves the problem of Stable Marriage. In this problem we aim at "n" men and "n" women and our goal is the contracting of constant marriages between men and women. Obviously each man can be wedded only one woman and one …

Member Avatar for jephthah
0
119
Member Avatar for wellibedamned

okays... so i'm looking for some kind of a standard algorithm that doesn't take long. i thought going backwards, finding the first space, writing the last word and nulling (is that even possible?) each char, but that doesn't really sound good to me. I've seen some people say you should …

Member Avatar for wellibedamned
0
149
Member Avatar for acetdmn

You are required to provide an algorithm to operate a cash register that will keep count of all withdrawals and deposits made during a day’s business operation. For simplicity, this cash register will handle notes with the value of $50, $20, $10 and $5 only, and coins with value of …

Member Avatar for n1337
0
597
Member Avatar for lianaconda

Hi. The assignment is to implement a function using recursion. I can't use any loops whatsoever. The function takes in an array of doubles and the array size, and is supposed to return the position of the smallest element in the array. I've already written some code out for the …

0
57
Member Avatar for xtheendx

In my program i have three sperate vectors that store the students last name, first and score. I need to sort it by last name and print the contents of the vectors lastname, firstname: score. Well i have got it doing that for the most part. But after it sorts …

Member Avatar for xtheendx
0
157
Member Avatar for bodom_lx

Hi everybody, I've got a question for you. As assignment for the dsa course I've got a task regarding an array with cost values stored in each cell. The following is the array: [CODE="C"] int C[5][5] = { {8, 2, 3, 1, 5 }, {0, 6, 4, 9, 7 }, …

Member Avatar for Salem
0
108
Member Avatar for esmaeel_1211

Hi everyone, I was wondering if anyone could help me solve the popular 8 puzzle problem in C# using the A* algorithm or using the manhattans distance heuristics. thank you. bye

Member Avatar for Ramy Mahrous
0
35
Member Avatar for tillie

I tried to chat online with HP customer support to talk about my all-in-one, but when it tried to connect to the technician, I recieved this error. validation of viewstate MAC failed .. If this app is hosted by a web farm or cluster ensure that <machinekey> config specifies the …

0
56
Member Avatar for kse989

This is the header file for a Recursive Binary Search Tree - I have never used recursion, not sure if I'm, using it right... If you could tell me if this is the correct algorithm for recursion for this code, that would help alot. -- also, I am not sure …

Member Avatar for Laiq Ahmed
0
904
Member Avatar for Saaddani

I posted my code along with the assignment issue here: [url]http://www.daniweb.com/forums/thread121468.html[/url] I apologize I overlooked the Game Dev section. In short, the assignment is: Implement a Goal Oriented AI system. The system should include C++ objects that implement Goals, Actions and Tools. Use the programming example for Chapter 3 as …

Member Avatar for Ancient Dragon
0
185
Member Avatar for replyfast

I have the text file (in1.text) <<<start>20>>everything going fine or not<start>i do not know but I am trying<end><start>Trying is but we can do<startabcdefghijklmnopqrstuvwxyz<end> <<<start>20>>Trying to do things<end><<<start>20>>well try try and try again<end> I have to extract tag <<<start>20>> from file.My code is [code=cplusplus] #include <vector> #include <fstream> #include <sstream> #include …

Member Avatar for pcgeek123
0
74
Member Avatar for xtheendx

Everytime i run my program after i enter my first value for the number of students, i get the windows box that pops up and says studens.exe has encountered a problem and needs to close. Is this a problem with my cose of a computer problem? thanks [code] #include <iostream> …

Member Avatar for Salem
0
72
Member Avatar for ksa_msn

please to all if any one have solve of these a program that will simulate the preemptive version of the Priority Scheduling Algorithm algorithm. The program should compute waiting time and turnaround time of every job as well as the average waiting time and average turnaround time. A job table …

0
63
Member Avatar for medoyem

1. Write a Visual Basic program with GUI to cluster the following four dimensional vectors into an ART system: 1110, 0011, 0100. Play around with the vigilance parameter and see how the clusters change. 2. Write a Visual Basic program with GUI to encode the following associations into a bipolar …

Member Avatar for debasisdas
0
100
Member Avatar for LindseyV

Hi there and thank you in advance for your help in advance. I am having problems with my page replacement program with taking the integers from an input file and putting them into an array. I need it in format [Next page in] | | | | (current pages between …

Member Avatar for Lerner
0
353
Member Avatar for tm5054

Using RSA, I need to use the following values to encrypt the word “hello”: p=3, q=11, e=9, d=9. And then apply the decryption algorithm to the encrypted version to recover the original plaintext. For the message, use h=8, e=5, l=12, o=15. I have no idea and have been struggling for …

0
38
Member Avatar for nurulshidanoni

How to change this data sturucture from vector <int> total; to float total;? because if I change it to float teher is many error.... [code=C++] #include <iostream> // std::cout #include <fstream> #include <iomanip> #include <string> // std::string #include <vector> // std::vector<> #include <algorithm> //std::for each() using namespace std; // import …

Member Avatar for littlestone
0
294
Member Avatar for guvengunes

Write a function that fills in a given matrix with the given numbers so that the sum of all columns and all rows should be equal to the same number. The prototype for the function should be void fillMatrix(int mat[][MAXSIZE], int numbers[], int rowSize, int colSize, int sum); For example, …

Member Avatar for jrcagle
0
100
Member Avatar for pete212

Hi, need some help with this one. Here is the question: Compose an algorithm for a program that creates a list of words encountered when reading a series of text files. Write a program to open, and subsequently close, each input file, terminating should an attempt to open any file …

Member Avatar for Narue
0
218

The End.