3,815 Topics

Member Avatar for
Member Avatar for titosd

Hello, I have a question, more than 1 day i tried to solve it but i didn"t, plz help me. the question is: We have 1000 containers arranged on a single line 10 km long, and on each container there is number (key) and the weight of the container, We …

0
53
Member Avatar for SeanC

Hi all, I'm writing a simple encryption algorithm and have stumbled upon a problem relating to the file handling itself. What my program does is reads text from a file, encrypts it, and writes it to another file. That's all well and good, and it works fine - until a …

Member Avatar for SeanC
0
462
Member Avatar for wert21

Good day! we have an exercise on how to create a list but i do not know how to do it without an algorithm. Can you help on what is the algorithm to create a linked list?

Member Avatar for vinayakgarg
0
86
Member Avatar for Mr_PoP

[CODE] #include <algorithm> #include <iostream> #include <Windows.h> #include <string> #include <cctype> using namespace std; int main(void) { //declare variables char npcname; char actid; //askin the user to input npc name cout << "Please Enter Your NPC Name!"<<endl; cin >> npcname; //askin the user to input action id cout << "Please …

Member Avatar for Saith
0
80
Member Avatar for Mr_PoP

[CODE]#include <algorithm> #include <iostream> #include <string> using namespace std; int main(void) { int actid; cin >> actid; if(actid != 1,2,3,4,5,6,7,8,9,0) { cout << "you must enter an integer"; return 0; } }[/CODE] but it's fail :(

Member Avatar for Mr_PoP
0
146
Member Avatar for Mst8kenId

does anyone know which specific randomization algorithm the ipod shuffle uses to shuffle its songs? desperately need it for my thesis. thanks.

Member Avatar for Narue
0
121
Member Avatar for mindx

Polynomial hash code in hashing is used to convert character strings to numerical values. Use Horner’s rule to implement this algorithm, and also perform the character conversion using ASCII format. Conduct experiments to study the collision rates for this hash code by using different values (prime or non-prime numbers) for …

0
94
Member Avatar for Aqua_annie

The class should be capable of storing, manipulating and printing dates. Dates can be initialized by assigning 3 numbers - the day, the month and the year (initially restricted to any date after 1st January 1900 and before the year 3000) e.g. `Date d1(26,3,1999);` Dates will be printed by either …

Member Avatar for VernonDozier
-1
131
Member Avatar for aligajani

I want to sort the getSal values in the myList. It should be a sorting algorithm implementation so that adding or removing objects does not affect the performance. [CODE]import java.util.*; public class payment { public String name; public int salary; void setName(String _name) { name = _name; } String getName() …

Member Avatar for aligajani
0
176
Member Avatar for ObanaJunichiro

Anyone here can help me with Boyer Moore algorithm? Im study lots of code and example for couples of hour already and yet i cant figure it out how does the Boyer Moore algorithm works.. It really too complex for me .Can anyone give me a sample code or perhaps …

Member Avatar for griswolf
0
99
Member Avatar for kristo5747

Greetings! This n00b has a "search engine" dedicated to extracting relevant information from log files. It works by parsing preset fields in the log filename. I'd like to have some notification when the search returns no rows as I am planning to add more search options. Here's my code: [CODE] …

Member Avatar for dharmadurai
0
333
Member Avatar for Salsabil86

hi all, i need to know the complexity or the "big O notation" of the deconvlucy function in Matlab, implementing the accelerated lucy-richardson algorithm. i tried to trace the code myself, but the written Matlab code is kinda complex and unreadable to me :-/

0
46
Member Avatar for Me-Mo

i have this and i can not solve it plz l do not have time :( Write a program that print the prime factorization of all the number n between 2 and 100 .if n is a prime , your program writes that it is so . otherwise it should …

Member Avatar for Tellalca
-3
149
Member Avatar for sthanner
Member Avatar for Akill10
0
66
Member Avatar for billmudry

Sometimes a person can get too close to their work that they cannot see what is going on wrong. I hope that is the case here. I have been working on my favorite project, a large wood knowledge base at: [url]www.prowebcanada.com/taxa[/url]. There is enough data to look up already and …

Member Avatar for pritaeas
0
191
Member Avatar for ggs234

I need a perl script to read the following message from log file WARNING: Child is hung for request Perl script should have the following conditions It should look log file located in specific location (example /mylog) and read "WARNING: Child is hung for request" (Without quotes) message continuously in …

Member Avatar for k_manimuthu
0
1K
Member Avatar for Nivass

Hi, How to calculate the space in the picture box when the picture box property set to zoom mode. Say my picture box width is 1152 and loaded the image in Zoom mode property. when i debug i get the value 270 (in both side). How to get this value …

0
45
Member Avatar for Thisisnotanid

Hi everyone. I was trying to solve Pb 35 on Project Euler ([url]http://projecteuler.net/index.php?section=problems&id=35[/url]). It essentially asks to write a program to list all circular primes under 1e6. I wrote the program and it works well for the most part. However, in the end it seems not to be able to …

Member Avatar for Thisisnotanid
0
2K
Member Avatar for bufospro

Hi all, I have an exercise in communication systems. I have to learn about Quantizers. PCM with Uniform Quantization and with non uniform quantization (Lloyd_MAX algorithm) When I make this in matlab, I have to compute SQNRS for N=2,4,6 bits. Does anybody know what I have to expect ? Thanks …

0
56
Member Avatar for dynamyt3

Hello.I'm a begginer in C++. I'm trying to make an algorithm that will shuffle randomly the elements of a matrix[4][3],but i don't know how to start... Can someone help me with the algorithm ? I think is something like this but i'm not sure : [code]bool test=false; int x; x=rand()%4; …

Member Avatar for dynamyt3
0
1K
Member Avatar for dineshcbe

I wish to use DCT algorithm to compress jpeg image.But, i can't able to understand how they got the values in the matrix2 for corresponding values above 200 in matrix1. Thanks in advance.

Member Avatar for Momerath
0
81
Member Avatar for Clinton Portis

As a proud memeber of the 10% unemployed and the 45% under-employed, I often find that I have a lot of time on me' hands. Now my dear ol' mom likes to play this game, and she's often at home alone.. so with nothing else to offer this holliday season, …

Member Avatar for Clinton Portis
0
166
Member Avatar for ALorenzo91

I need Help with a program Details: Design an algorithm that will produce a list of selected student names from a student file. Each input student record contains the students number, the students name, semester hours, and the age. Your program is to read the student files and prepare a …

Member Avatar for jeffreylee
0
113
Member Avatar for amrish2338

Has google changed algorithm Of search resultis?.I have owned two sites and optimizing both for google by using forums signature .In these days i could not see little bit inprovemend in search results .My 1st site is falling down and 2nd is not in top 500 results for keyword “watch …

Member Avatar for zslwork
0
112
Member Avatar for Carlog

Hi, my pagination works good but I'm not able to understand how generate a fixed number of links to the pages. For example, I need to have 5 fixed links in this way: 1 - 2 - 3 - 4 - 5 > if I click on the third page …

0
68
Member Avatar for L.sha

Hello I have to work with Linkedlist, and sort them from smallest to the largest. So I have made this sorting function. It works but I dont understand why it is not displaying me the items I have inserted after sorting it. I have also looked at the other related …

Member Avatar for Narue
0
155
Member Avatar for snipermann

Hello, I have a project to find a monotone curve as it in the figure 4 in this link: [URL="http://www.cim.mcgill.ca/~stephane/cs507/Project.html"]http://www.cim.mcgill.ca/~stephane/cs507/Project.html[/URL] and after I had calculated the values which must be calculated (figure5), in order to get the monotone curve . I have thought to use the Breadth-First serch Algorithm [URL="http://en.wikipedia.org/wiki/Breadth-first_search"]http://en.wikipedia.org/wiki/Breadth-first_search[/URL]for …

Member Avatar for snipermann
0
91
Member Avatar for faintfascinatio

Hi, Wondering how I would be able to implement an efficient fuzzy match algorithm in either c# or sql. I was using levenshtein's distance for my test data (~10 records) but once I started using a larger data set (~800 records), I realized this may not be the best way …

Member Avatar for kvprajapati
0
113
Member Avatar for doom2100

hello all my problem is a confusion on the second problem here i managed to solve the first problem and made the program i hope its correct as u see.. First problem Three memory locations A, B, and C contain numbers. Write down the algorithm for finding and printing the …

Member Avatar for doom2100
0
136
Member Avatar for pretty_girl90

Design and write Pseudocode for the following problems. 1. Display the table from one to ten for a number that is entered by the user from keyboard. The program should keep on asking for number and displaying tables until user presses escape key from keyboard. 2. The program should display …

Member Avatar for jember
-1
141
Member Avatar for MAbebe

Hello everyone, Can anyone please help me figure out what I miss or did wrong to my code for not to compile? below are the code I did and I just couldn't figure it out what I missed. Thanks. [CODE] #include <iostream> typedef struct NodeType { char name; // the …

Member Avatar for FutureWebDev
0
455
Member Avatar for gahhon

I wanna ask, How can we reverse a number by using Recursive ? For example if a number is 123, the result will be 321. is that any idea to help me? because i can't think about it... i poor on this chapter.

Member Avatar for myk45
0
197
Member Avatar for Will Gresham

Hi all. I am building a program to emulate a game 'Boggle', and have hit a dead end. I have tried to search for hints online as to what I need to do from here, but everything I find is either just a block of code sparingly commented or doesn't …

Member Avatar for Momerath
0
89
Member Avatar for modjoe

Ok, so i have an assignment due in 9 hours, its about computing the shortest paths from a vertix input by the user to all other vertices. The adjacency matrix is supplied from a text file, so I have done the following code: (Some of it was given for me …

Member Avatar for daviddoria
0
510
Member Avatar for sneha Butala

I want to create a project on Genetic Algorithm using java for the msc final year..so how i can start to create a project..

Member Avatar for masijade
0
281
Member Avatar for JJHT7439

I have a project to do and I'm pretty lost on it. The purpose of the project is to make a game like quoridor, but for this part you only need to have your program ready walls from a file (Walls are given in the format of: (startx, starty)(endx, endy) …

Member Avatar for newbieha
0
606
Member Avatar for Basteon

Hi! I'm writing the mergesort algorithm, theoretically everything is fine in it but when the function gets to call itself the program crashes. I belive that I'm doing something worng when I pass the vector<int> as a parameter to the function. [B]procedure mergesort(T[1 .. n]) if n is small then …

Member Avatar for Basteon
0
1K
Member Avatar for lotrsimp12345

I am really confused as to how this works? You have a critique but where does the critique come in? Also is their a difference between activation on hidden nodes and output nodes? Does the critique come in during the hidden node? or the input node? Thanks

0
53
Member Avatar for rahulKRISHNAN
0
43
Member Avatar for nickelsunshine

Can anyone help! have 12 hours before must turn in this project and still getting errors, but got htem down to one. Here it is: F:\CPT244\Programs\Tests\Chapter 13 & 14 Test\Lab 1\FlightListMain.java:54: cannot find symbol symbol : constructor Flight(java.lang.String,java.lang.String) location: class Flight Flight target = new Flight("Detroit, MI", "Miami, FL"); ^ …

Member Avatar for seanbp
0
130
Member Avatar for keeda

Hi, I am trying to come up with an algorithm to generate different permutations possible for a string. like "String" -> "String" , "Strgni" etc.. I know this is a common question, but google did not help me much. I am looking for algorithms and data structures to generate different …

Member Avatar for jonsca
0
78
Member Avatar for jalpesh_007

I have implemented RSA using java as shown below. mport java.math.BigInteger; import java.util.Random; class SimpleRSA { public static BigInteger p, q, N, v, k, d; public static void main(String[] args) { // p & q are prime numbers Random myRandom = new Random(0); p = BigInteger.probablePrime(512, myRandom); q = BigInteger.probablePrime(512, …

0
85
Member Avatar for PatrickE69

this is my final project for my java class. This is what im supposed to do::::: Write a program that can be used for reserving airline seats. You can use three algorithm building blocks (Sequence, Selection, and Iteration). The airline has 15 rows, with 6 seats in each row. Rows …

Member Avatar for hertze_bogdan
0
755
Member Avatar for xecure

Well I'll go straight to the point... I'm trying to recursively move through a binary search tree. I'm not really sure what is wrong with my algorithm (and I'm also pretty new to recursion) but this is what I have: [CODE] public boolean contains(BTreeNode<T> node) { return containsItem(root, node); } …

Member Avatar for xecure
0
137
Member Avatar for ELewis08

I saw the same thing I'm about to post on here earlier, but the difference is that I wrote the program, but it doesn't do anything save compile. The code's a bit sloppy, and I'm just not quite sure where to begin with the bugs. The actual assignment is as …

Member Avatar for Khaled Qawasmeh
0
339
Member Avatar for miturian

Job: my class "network" contains a vector "taus". I wish "network" to be able to find the indexes of the n smallest elements. My first idea was along the lines (this is mostly meant as pseudo-code): [CODE] #include<algorithm> #include<vector> #include<cstdlib> class network { vector <double> taus; vector <int> nsmallest; vector …

Member Avatar for StuXYZ
0
2K
Member Avatar for MrJNV

I need help figuring out if two numbers are co-prime. So far I have this (prime() is a bool function) [CODE]void GetE(int& e, int& result) { int random = rand(); do{ while(prime(random)) { if(random < result) e = random; else random = rand(); } while(!prime(random)) { random = rand(); } …

Member Avatar for arkoenig
0
606
Member Avatar for dusty_tomorrow

I really need help with a project that I have to write for my intro to Java programming class. I have absolutely no idea what to do or how to do it. I would appreciate any help or starts on the code or maybe, just maybe, a code for this …

Member Avatar for griswolf
0
136
Member Avatar for suncica2222

I need to compress monochromatic bitmap with modified huffman algorithm here's the algorithm: [url]http://www.iet.unipi.it/m.luise/HTML...n%20Coding.htm[/url] as you see i need to replace pixel (bits) sequence with some bits sequence variable length so im not sure which type to use for bits manipulation iI found this class for bits [url]http://www.codeguru.com/cpp/cpp/cpp_...nipulation.htm[/url] and this …

Member Avatar for suncica2222
0
180
Member Avatar for SabinIvy

Ok, so I want to create an alternate way of creating this: *________* **______** ***____*** ****__**** ********** ****__**** ***____*** **______** *________* Note: The right side is supposed to lookjust like the left side. Note 2: Replacing the underscores with asterisks(*) This is the code I have so far, but I …

Member Avatar for Clinton Portis
0
224

The End.