3,815 Topics
![]() | |
Hi I am trying to generated a Huff man code. i am trying to arrange a vector<info> (info is a structure) to get a binary tree. 0. Read a txt file containing about 10 to 20 different symbols.and store it in a vector (vector <info>); 1. First sort the vector … | |
I have no idea how to get started -Prompt user for an integer -If the number is even, divide it in half - If the number is odd, multiply it by 3 then add 1 - If the number reaches 1, stop; otherwise go to step 1 -Use while loop. … ![]() | |
Hi all, Can anyone send me the Apriori Algorithm implementation in C and a dataset so that I can able execute and learn. Your help is greately appreciated. Thanks, Arthur | |
hi, i've an insertion sort algorithm and a selection sort algorithm. i'm not sure how to measure the performace(best case and worst case in terms of N= size of the list, deque, vector etc.) i'm trying to insert comparecount and movecount in the program. Bubble sort was easy but im … | |
So I have been trying to figure this out for a while. Its a fun puzzle game that might send you thinking for a while, here it is: Lets say you work at an office/lab, and you have workmates. Lets also say that you love Coke, so much you always … | |
I am supposed to code a program that uses 3 parallel arrays. The program should prompt the user to enter in a Product ID. From there it is supposed to search the ids array and then display the corresponding price and quantity remaining. It does not do this. Instead I … | |
I'm working in a project and part of it is to do a small encryption program. W can use substitution encryption where each character is substituted by another pre-determined character. Can someone kindly help me with an algorithm. I just can't think any more! Thanks drjay | |
Sir, i do have this problem and im quite unaware about the variable declaration and the algorithm in creating this problem? thank you. | |
Hello, I wrote a quicksort program that will give me the execution time of the algorithm. I was running it for 1,000, 10,000, 100,000, 1,000,000, and 10,000,000 numbers. Everything was going fine and then when I changed the amount of numbers it is sorting it gave me a segmentation fault … | |
[COLOR="Green"]hi to all of yu[/COLOR] well me tarun ,new to these community finding myself great to be here,well currently i am learning c++ with algorithm hope yu all will help me to acheive my goal. I promise to give my level best to keep this coomunity keep and clean and … | |
i have problem solving my quesion in branch and bround algorithm ( tournament problem),i already could have solved it in backtracking algorithm but it is not in optimal order so i decided to try branch and bound algorithm | |
hello sir, I want to know that how to create a algorithm for intrsion detection in mobile devices and can you send the algorithm for this. I want to know about intrusion detection and basic tools which is required for create a intrusion detection program. Please help me for this … | |
If a problem belongs to P class then can it belong to NP class? Answer according to current research in Complexity theory. | |
Whats up guys, I'm writing this java program and I'm having trouble with Strings. Does anybody know how to write the following methods? public void bubbleSort() //sorts the array strings using Bubble Sort Algorithm (ascending) public void selectionSort() //sorts the array strings using Selection Sort Algorithm (ascending) public void insertionSort()//sorts … | |
Hi Dears! I am a Beginner, Please Help Me. If you Can Help me to find out how to sort a 2d arrays of characters with [U]recursive bubble[/U] sort algorithm. I have got something but it doesn't work. what is my mistake? I Did codes below So far, but it … | |
Please does anybody has a solution to the following topic: Application of first order homogeneous differential Equation to life situation such as Capacitor discharge. . (1) Describes the steps involved in the problem solution (2) Create the algorithm to solve the problem (3) Analyze the algorithm design (4) Implement the … | |
I made this applet for my APCOMPSCIA class, it due tomorrow but I cant get it working. I need to show the animation of a sort, but it just does sort once that it, please help. I will be very great full. [CODE]import java.applet.Applet; import java.awt.*; import java.awt.event.*; import java.util.Random; … | |
Is there any way that I can get PERL to give me the elapsed time that it took to calculate something? I'm trying to make my algorithm for finding prime numbers more efficient, and obviously I can't tell the differences in the time it took to generate the list, so … | |
Implement a subject scheduler using the topological sorting algorithm. The program shall prompt for an input file containing the subjects in the set and the partial ordering of subjects. A subject in the input file shall be of the form (number, subject) where number is an integer assigned to the … | |
I'm trying to write a program that will calculate rations, max, min, total and average #. I'm told I can use #include <algorithm> but I don't know how to use it. I need it to spit out something similar to the following: How many in the first category? 8 cats … | |
Hi, I'm working on an algorithm that solves a maze from the inside, and seeks out 1 of the 4 exits on the sides, and after getting 1, it goes to the next until it has them all. The maze is always 22x22, and you only have 400 steps. I … | |
in C++ i am getting two errors regarding illegal else without matching if , and i have dont i myself the last step of my project is to obtain the average of all non positive numbers and average of all negative numbers as well as the sum of just the … | |
Dear All, Kindly tell me about in algorithm that "Time complexity is used to compare the efficiency of two algorithms, so why not we only use actual running times of two algorithms to compare them". | |
I'm trying to right a red-eye reduction algorithm for an assignment at school. The user is asked to click on 2 eyes in an image, then the algorithm takes over and corrects the redness. The algorithm works just dandy, but I'm having a hard time capturing the actual location (in … | |
C PROGRAMMING ASSIGNMENT 1. Express, using pseudo code, the algorithm to compute the nth root of a whole number (for example, the square root of the whole number for is 2). 2. Prepare a flow chart for the above algorithm. 3. The following has to do with the design of … | |
I am making some software to analyze digital sound data. My first step is to find where all the attacks are, or where the starts of notes are. I want to find where there is a significant increase in volume, working with both relative and absolute differences. The difficulty with … | |
Hi everyone, I'm new to this site and figured I could get some assistance here. I'm a college student with slight programming experience. Anyways... The program I need to create... needs to read a text file into an array of structures that are linked - hence a linked list. That … | |
Im getting these two errors, here is the whole code besides the edits and i know the edits works so their not important here. Error 6 error LNK2019: unresolved external symbol "int __cdecl loadArray(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const (* const)[2])" (?loadArray@@YAHQAY01$$CBV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@Z) referenced in function _main Q6_A1_CODE.obj Error 7 fatal … | |
Hello, Can any of u help me with this assignment.. I tried to do it myself but cuz I'm new in Object Oriented my program was full of errors that I don't know how to fix :( Please help me as soon as possible.. here is the question: Write class … | |
Hello, I hope my question falls in the right forum. I have a content web 2.0 website with ms sql database. As most content websites, every file has Title, description and tags added by uploaders. I would like to know if there is any standard algorithm for SQL search based … | |
I'd like to implement a sorting algorithm(quicksort or bubblesort or mergesort... it doesn't matter. anything that sorts is ok) into my insert function, so that everytime i create a new element it'll be inserted into right position. The variable listptr is the pointer pointing to the address of the first … | |
hello.. i really need help.. I don't know why i keep on getting an empty stack if i pop a token from stack even if user has already push a token into it.. [code=java] public class MStack implements Stack{ public Node top; public Node[] stack; public static int T[]; public … | |
Any one please tell me about the algorithm used for updating the Cpnel used in webservers | |
hi this is pravallika doing my final year.presently im working on designing an algorithm for adaptive call admission control. I have written my program in C. 1. Is there any software to convert C to Matlab 2. Does Matlab support flags? if so how? | |
Hi i m working on project "Apriori algorithm simulation" on java. Can anybody tell me which r the neccesary software tools is needed.means which software needed | |
I have to sort the bars but i have to show them sort, by delaying it. Can someone help me add delay to make it work. I used Selection Sort --- [code] import java.applet.Applet; import java.awt.*; import java.util.Random; import javax.swing.*; public class SelectionSort extends JApplet { //Variables and arrays Rectangle[] … | |
I was viewing the practice problem section and decided to give a go at them, anyways, this is my Palindrome dector code. Could someone just take a look at it and explain to me if there is a better way to execute this problem? - michael [ICODE]// Palindrome check by … | |
I was given a movie list, and I was asked to make a program to retrieve information from it and eventually modify the program to find certain movies. Right now I have a Collection class and a Movie class. The Movie class look like this: [CODE] import chn.util.*; import apcslib.*; … | |
THIS IS WHAT I HAVE DONE SO FAR (QUESTION BELOW IT) [CODE]class Customer { public: int noOfCalls; String custName; virtual Compute_Bill(); }; //define function, contructors etc by Customer::Customer() etc class Premium_Customer: public Customer { //premium specific function that inhereit from customer }; [/CODE] HERE IS THE QUESTION I need help … | |
Hello guys, I ve been searching for a long time for an algorithm (in c++) that would take the number of digits and give all the possible combinations between 0 and 1. For example for number of digits 3 will give 100 010 001 110 101 011 111 The funny … | |
Hi, I am pasting here code for finding path using Dijkstra algorithm. [icode] #include <stdio.h> #include <limits.h> #include <assert.h> typedef enum {false, true} bool; /* The order is rather important to get the boolean values right. */ typedef char *string; #define oo UINT_MAX /* infinity is represented as the maximum … | |
Friendz, ... Have you ever do the practical about generating random number using Java in J2ME environment before ? What do you think about the suitable algorithm to be used ? I ever heard that using Blum-Blum-Shub algorithm is provable secure but in implementation, it would be so...heavy. Do you … | |
To all fellow geeks and to whom have prior knowledge in database design, I'd like your consultation on several issues I've faced in my project. So first I'll give a brief explanation about the it: We are supposed to develop the following software: Semi Automated ER diagram generator [u]Input:[/u] Meta … | |
I made some simple mistake (conversion?) in my program.. I will be gratefull if anyone has an idea what's wrong with it;) The problem is not with the algorithm itself so I am not explaining it - the problem is: why the condition placed in the code between // HERE … | |
Can anyone help us regarding the implementation of Incremental Shortest Path Heuristic (ISTH) Algorithm using C? | |
Hello all, I've written a piece of code that lets me generate or read a grid where all cells have a value. The grid stands for a simple 2d visualisation of an area where types of housing are to be build. The values of a cell stand for some different … | |
please can anyone help me in writing code for the below question in c++ as am weak in c++ a. Write and test a function for the vertex-insertion algorithm (insert a new vertex, given a specification of all vertices adjacent to it) | |
I am just curious, just how much of math do one really needs in order to make, say space invaderes, or pacman....WOW,..NBA LIVE 2009? It's not that i am bad at math or anything, in fact I am pretty good at it and still learning, calc.II. BUt i am curious, … | |
Hello all, I am trying to pass data between two files using POST method. I am using Visual Studio 2008 and working in C# Environment to run this in ASP.net. The code i am using is: sareeweb.aspx [code=c#] <%@ Page Language="C#" AutoEventWireup="true" CodeFile="sareeweb.aspx.cs" Inherits="_Default" %> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML … | |
Hi guys, i'm doing a peice of coursework for uni where we are required to implement a Min-heap/priority queue for calculating the Minimum Spanning Tree. In a min heap, the parent's value needs to be smaller than that of its two children. I've tried to implement this,giving the following list … |
The End.