3,815 Topics
![]() | |
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 … | |
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 … | |
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? | |
[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 … | |
[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 :( | |
does anyone know which specific randomization algorithm the ipod shuffle uses to shuffle its songs? desperately need it for my thesis. thanks. | |
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 … | |
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 … | |
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() … | |
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 … | |
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] … | |
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 :-/ | |
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 … | |
hi, all i need a code for ant colony optimizaton algorithm in java can u help me regarding this | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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; … | |
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. | |
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, … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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. | |
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 … | |
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 … | |
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.. | |
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) … | |
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 … | |
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 | |
Can any one helps me in getting the code for hub finder algorithms and hub rank | |
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"); ^ … | |
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 … | |
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, … | |
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 … | |
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); } … | |
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 … | |
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 … | |
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(); } … | |
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 … | |
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 … | |
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 … |
The End.