3,815 Topics
![]() | |
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 … | |
[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] | |
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 … | |
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 … | |
can anybody give me the program to solve booth algorithm............ | |
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 … | |
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 … | |
![]() | 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 … |
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, … | |
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 … ![]() | |
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. | |
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 … | |
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 … | |
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 … | |
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 :( | |
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 … | |
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 … | |
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 … | |
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 … | |
[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'; … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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) … | |
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 -- … | |
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 … | |
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 … | |
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. … | |
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 … | |
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 … | |
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 … | |
![]() | 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 … |
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 … | |
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 }, … | |
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 | |
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 … | |
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 … | |
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 … | |
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 … | |
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> … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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, … | |
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 … |
The End.