3,815 Topics

Member Avatar for
Member Avatar for adida948

Hello. I am having a very hard time trying to encode a file and then decode it again so i can end up with the original file. I want to transform the content in the original file into base 85, and perhaps 100 charaters or more so that it works …

Member Avatar for Duoas
0
472
Member Avatar for Sturm

For homework I'm apparently supposed to implement some functions defined in [icode] <algorithm> [/icode]. So this is what I have so far: [CODE=c++]template <class I> bool m_equal( I b, I e, I b2 ) { for ( ; b != e && b == b2; b++, b2++ ); return b …

Member Avatar for Sturm
0
127
Member Avatar for pupu14

can anyone give a code for cpu scheduling algorithm for FCFS, SRTF and PRIORITY please it to my <snip email> tnx..

Member Avatar for ithelp
-1
89
Member Avatar for algo_man

Hi every body, I would like to find one recent algorithm in one of the following field: 1. Randomization 2. Approximation 3. Networking(delay, routing, distance, load balancing, average distance) This algorithm should be published in conference or journal, and should not complex. [COLOR="red"]My work is to implement this algorithm using …

0
45
Member Avatar for volscolts16

Problem: I am not sure how to get the Treeiterator started into the main, or how output to the file. Thank you in advance sorry for the long read, but it is a long project, for such little output. The assignment: Write a program that maintains the names, addresses, and …

0
62
Member Avatar for zandiago

Good day. I would like some suggestions/recommendations as to what type of project i could do...so basically you guys get to assume the role of a professor...here it goes: Write a program that uses an array of structures. lt can be on any topic or subject you wish to choose. …

Member Avatar for zandiago
0
561
Member Avatar for Nemes

Hello, I am running a heuristic search algorithm (running on Windows XP), and at each iteration, I want to write results in an output file. The issue that I have is that after a number of iteration, my program crashes at the line where I have the "fputs(str, f);" (See …

Member Avatar for Ancient Dragon
0
482
Member Avatar for rick_miller82

I am a masters student working on a project for one of my professors and i am coming across an issue. I am working on a 6 variable GA scheme for Digital image correlation. I have created a majority of the code but i want to be able to add …

0
39
Member Avatar for funkyjohny

Can anybody do this; The algorithm of Chang and Roberts achieve the 0(NlogN) (N the number of nodes) complexity of messages in the medium case, but at worst however it achieves 0(n^2). The algorithm of Peterson of/Dolev-Klawe-Rodeh achieves complexity of messages the O(NlogN) at worst situation improving the algorithm of …

Member Avatar for Salem
0
156
Member Avatar for rodce

I'm a beginning C++ student/programmer, and I'm having a difficult time coming up with an algorithm to solve a programming problem. If someone could give me a recipe on how to go about solving the following problem using c++, I would appreciate it. Problem: A school has 100 lockers and …

Member Avatar for WaltP
0
682
Member Avatar for iamconfused

[U]Hello...[/U] First of all hello to everyone... this is my first post. I did some 'googling' for help with C code and found this place, the reason I need help is because I am working on a (what I consider hard) project and (only) a week and a half to …

Member Avatar for iamconfused
0
218
Member Avatar for kiel19

how to write c code function implementing the first heuristic algorithm [CODE] void binpack_firstfit(int item) { int s = 0; int bin_Value; do{ bin_Value = bins[s]; if (bin_Value + item < BIN_VOLUME){ bins[s] = bin_Value + item; s = NUM_BINS; } }while(s++ < NUM_BINS); }[/CODE]

Member Avatar for Salem
0
142
Member Avatar for juoyaf

Hi all, My cosin give me your site today when I called him, he kind of had the same problem. I have a file and i'm trying to read from this file as follow ID, first, last name and from the numbers (buyer.type) two things type, and how many pound, …

Member Avatar for juoyaf
0
87
Member Avatar for chetah

Home Work Problem. I understand what the program is suppose to do, but I do not understand how to implement it using Link List. Please help me to understand the problem. Write a program to perform ariththmetic with integers of unlimited size. You must read data from the input file, …

Member Avatar for chetah
0
81
Member Avatar for sophia15

Hi everybody! my name is Sophia and i'm new to this forum. i'm actually a student in computer sciences in Morocco. I need some help with my assignment: i need the source code for Booth's multiplication algorithm in C, i have been trying but i'm stuck :( thanx for ur …

Member Avatar for jasimp
0
17
Member Avatar for Knad

Hello, I am trying to impliment a guassian blur filter in C++, but i cannot progress asi keep getting a Floating point exception every time i run it. I am unsure as to why, i have narrowed the error down to somewhere within the function gaussian_mask() which creates the gaussian …

Member Avatar for Knad
0
292
Member Avatar for gauthamnaggg

Hello all, I need to write a code that compress and uncompresses thegiven file in c.Well i know there are many algorithms available ,one of the famous algorithms is Huffman's algorithm.But how do i implement the algorithm ?.I googled a lot but couldn't able to find ?.Is there any simple …

Member Avatar for Jishnu
0
204
Member Avatar for Ratte

I have a person datafile of many entries. Persons will be stored in a linked list and each of the person amongst other things will have a linked list of items belonging to them. The object of the program is to use a quicksort algorithm to print out entries of …

Member Avatar for Narue
0
121
Member Avatar for chetah

I am having difficulty implementing Booth's Algorithm in mips and need some assistance urgently. FOr this assignment, I have to allow the user to enter two number representing the multiplier and the multiplicant. The the Booth's algorithm when implemented in mips should print the results in both binary and decima.

Member Avatar for Duoas
0
2K
Member Avatar for carlarolan

hi i am a newbies in c program. I'm just 1st year college from the course of computer technology.i just want to know what was the purpose of flowcharting in a program.does it express an idea or a plan to make a program?. then what was the connection of these.?thaks

Member Avatar for carlarolan
0
104
Member Avatar for volscolts16

Hi All, I have a new assignment which I have worked most of the way out, except I have one issue. When I sort the large text file it does not print out all the information at that moment, I have to hit enter a couple of times before all …

Member Avatar for mohanrobin
0
157
Member Avatar for shaqnolysis

Below is a QuickSort Serial Algorithm..... 1. procedure QUICKSORT(A,q,r) 2. begin 3. if q < r then 4. begin 5. x := A[q]; 6. s := q; 7. for i := q+1 to r do 8. if A[i] <= x then 9. begin 10. s :=s+1; 11. swap(A[s],A[i]); 12. end …

Member Avatar for mohanrobin
-1
258
Member Avatar for iaaan

The Game The game involves 10 words, which make up the nonsense sentence, “to tip pods on pan is as a tad din”. Two players take it in turn to take a word. The winner is the player who takes words containing all of any one of the letters involved …

0
71
Member Avatar for chris53825

A friend of mine wanted to see if I could figure this out.. and it's driving me crazy!! Maybe I'm just over thinking it? Anyways, can anyone figure this out? Design an algorithm to sort a deck of cards with the restriction that the cards must be kept stacked in …

Member Avatar for Salem
0
129
Member Avatar for Noliving

Here is my code, all I need help with is getting the text to display in a graphics window. I have tried several different ways and I'm not getting any errors either. I bolded the part that I'm having trouble with. The other ways I have tried have been pounded …

Member Avatar for vegaseat
0
120
Member Avatar for galanshi

Hello: I am working with the Lempel Ziv algorithm which is a data compression algorithm. I have to read text from an input file and create a dictionary and a sequence of code numbers. Then I have to decode the generated sequence of numbers and generate the original text. I …

Member Avatar for jwenting
0
44
Member Avatar for mandsmom

Hi, I have never used a forum like this before but I am stuck! I have to write a C++ program that allows the user to enter up to 20 students info. It must include Nem, Exam 1 grade, exam 2 grade, Homework average, final exam average. For each student, …

Member Avatar for WaltP
0
230
Member Avatar for gator6688

I need to assign each student a letter grade. The way I have it set up now it assigns the letter grade of the second student to both students. How can I get it to assign each student their own letter grade? Also, I would rather output the letter grade …

Member Avatar for gator6688
0
327
Member Avatar for gator6688

Everything is working on this program except for the output to the table at the end. It will only display the second student I enter but not the first. [CODE]#include "stdafx.h" #include <iostream> #include <fstream> #include <string> #include <cstdlib> #include <iomanip> #include <cmath> #include <vector> #include <algorithm> using namespace std; …

Member Avatar for Narue
0
102
Member Avatar for weasel7711

Trying to write code to concatenate two arrays of pointers to chars (char* example[]) The program should randomly generate a sentence using 4 arrays of prepositions, nouns, adjectives, and verbs. I found a concat algorithm somewhere on the net and modified it to fit my needs but whenever i execute …

Member Avatar for Narue
0
192
Member Avatar for Czechie

Ok, I need help getting started. I know the rules and such so I'm not asking for anyone to tell me answers or anything like that. I can do Dijkstra's algorithm no problem on paper with a graph, but when it comes to the java implementation I have a harder …

Member Avatar for ithelp
0
96
Member Avatar for clski1973

I have trouble approaching my program assignments. First I write out an algorithm. and work out each part if the program. Then I get nervous. and overwhelmed. with the errors in compliling and such. I have been working on the current assignment several days. And am frustrated and 2nd guessing …

Member Avatar for Duoas
0
308
Member Avatar for chanah

I don't know if this is the place to ask:confused: , but anyhow: My problem is this: I need to find the absolute minimum and maximum of a function of two variables, in a given bounded area. There are several numerical methods for finding local extrimum of functions, but none …

Member Avatar for Salem
0
88
Member Avatar for agrothe

A client has asked me to add a data mining module to a database of customer orders. I'd appreciate if anyone can point me to an algorithm which can help find trends and order patters from a group of dates. Does something like this exist? I'm stuck with VBA as …

Member Avatar for jbennet
1
51
Member Avatar for redaqen

EDIT: Please note, this assignment was already submitted. Well for our assignment this time around, we had to write up a BASIC editor. It had to sort lines of code numerically. Each line would never be more than 80 characters long and there would never be more than 100 lines. …

Member Avatar for Ancient Dragon
0
155
Member Avatar for kpillsb39

Hi, I have built a program for Dijkstra's algorithm, but not sure why it does not display the shortest path thru the matrix. Would someone please point me in the right direction to get the code to work. Thanks, code follows, no errors, but no display of path vertices for …

0
87
Member Avatar for dabu

I tried following this code for my program, but counting the consonants and vowels are not doing what I want them to. Is this the correct format to use? [code] #include <iostream> #include <string> #include <algorithm> using namespace std; void StateInstructions(); void GetInput(); void TurnUpper(); void TurnLower(); int NumVow(); int …

Member Avatar for zandiago
0
155
Member Avatar for cmoodc

given the equations is it possible to develop midpoint algorithm for: hyperbola :ellipse :parabola :circle ??

Member Avatar for twomers
0
119
Member Avatar for weasel7711

I am working on a project to demonstrate the use of strings without using "strings" in the formal definition, as in using pointers to arrays of characters. The program is supposed to pick a string from an array of pointers to chars, but allow the program to include more words …

Member Avatar for weasel7711
0
2K
Member Avatar for jordan1985

Anyone here can help me code a bubble sort algorithm code in C++ programming? I need to separate it in different file, which include the "h" file and the "cpp" file. The sorting display must be have 7 screen which the sorting is sort in step and show in step. …

Member Avatar for ndeniche
0
95
Member Avatar for anju24

Hi Everyone. I wan to get that how we can calulae the complexiy of an algorithm.? As i am working with the algorithm but i am very new to how we can calculae the complexity? Is there any good book on algorithm complexity or any good site for it. Thanx …

Member Avatar for Ptolemy
0
106
Member Avatar for woozyking

My problem was over here: [url]http://www.daniweb.com/forums/thread93806.html[/url] After many advices, helps, I could eventually solve this problem myself, happy~~:D All I did was to write a replacement function for strcmp() and then use a bubble sort function to sort input strings in lexicographical order. Much simpler than nasty nested loops :P …

Member Avatar for Ptolemy
0
338
Member Avatar for woozyking

Hi, I want to write a function to perform lexicographical sorting using a simple bubble sort technique. So far I've got the basic code running, but something is not right. I can tell the algorithm is wrong but cannot fix it, please help. [CODE]int bubble_sort(char **words, int num_word) { int …

Member Avatar for woozyking
0
641
Member Avatar for unikiller

I've been working on this class for about 2-3 weeks and I got everything done except the reducing part. I can't figure it out , I know you have to use the GCD algorithm , but I cannot figure out how to use it :o , Can someone please tell …

Member Avatar for siddhant3s
-1
111
Member Avatar for JaksLax

I am having trouble figuring out how to get my non recursive quicksort program to finish sorting. Here is my code [code] #include<iostream> using namespace std; /** * Swaps two items * * @pre x and y are the items being swapped * @post Contents of actual locations that x …

Member Avatar for JaksLax
0
238
Member Avatar for redaqen

Hey guys, I'm a long time lurker, and first time poster. Please be kind. Anyways, for one of my classes, Principles of Algorithm Design 1, we had an assignment where we had to create a program that would encrypt and then de-encrypt a message by offsetting the characters by a …

Member Avatar for Narue
0
196
Member Avatar for eldnek

Hi All, I am doing some research for work (this is potentially a commercial project, not student). We have a database of authors and publications. Unfortunately, authors don't have unique ids, and are only identified by inconsistent names (sometimes J Smith, sometimes John Smith etc). I was hoping to develop …

Member Avatar for eldnek
0
87
Member Avatar for SpionRed

Hello all, OK, here goes for an introduction…. I have been a software developer for the last 10 years. From Liverpool England, I now live in New Zealand with my wife and four kids. I am currently working full time as a software developer but soon to take up a …

Member Avatar for cosette_hinds
0
154
Member Avatar for vincent551987vn

Whne i using linked list, i must lay the empty box to take the each integer to itself, and it will connect to one bigger integer, and it seems to be a string, not to be a integer perfectly, how can i change it into a big integer, can you …

0
86
Member Avatar for ba19

hai..can anyone help me on this task...i might need some sample on doing it.TQ Tasks: 1 You are expected to write a program that simulates CPU scheduling algorithms (SJF and SRTF). 2 The program will request the user to set the the number of processes to be selected for execution. …

Member Avatar for stymiee
-1
523

The End.