3,815 Topics

Member Avatar for
Member Avatar for T.N.Sharma

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 …

0
94
Member Avatar for shadows09

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. …

Member Avatar for leegeorg07
0
186
Member Avatar for aashaw

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

Member Avatar for Salem
0
108
Member Avatar for avillachandok

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 …

Member Avatar for avillachandok
0
99
Member Avatar for CcXD

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 …

Member Avatar for Ash Abe Add
0
185
Member Avatar for greenbluekidz

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 …

Member Avatar for greenbluekidz
0
139
Member Avatar for drjay1627

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

Member Avatar for drjay1627
0
161
Member Avatar for Rein Valdez

Sir, i do have this problem and im quite unaware about the variable declaration and the algorithm in creating this problem? thank you.

Member Avatar for Rein Valdez
0
117
Member Avatar for code46

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 …

Member Avatar for code46
0
214
Member Avatar for tarun-pah-cse

[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 …

Member Avatar for jbennet
0
4
Member Avatar for honey.c

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

Member Avatar for Salem
-1
70
Member Avatar for Amit.sharma

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 …

Member Avatar for LizR
0
41
Member Avatar for faisaly

If a problem belongs to P class then can it belong to NP class? Answer according to current research in Complexity theory.

Member Avatar for Rashakil Fol
0
83
Member Avatar for ITlang007

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 …

Member Avatar for ITlang007
0
62
Member Avatar for mahdiahmadirad

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 …

Member Avatar for cikara21
0
802
Member Avatar for amuchie

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 …

Member Avatar for Salem
0
72
Member Avatar for Alishaikh

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; …

Member Avatar for stephen84s
0
90
Member Avatar for orwell84

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 …

Member Avatar for orwell84
0
159
Member Avatar for mabz_jean

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 …

Member Avatar for javaAddict
0
100
Member Avatar for mcamacho07

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 …

Member Avatar for mcamacho07
0
147
Member Avatar for llemes4011

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 …

Member Avatar for llemes4011
0
177
Member Avatar for rock9449

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 …

Member Avatar for StuXYZ
0
110
Member Avatar for faisaly

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".

Member Avatar for Rashakil Fol
0
88
Member Avatar for skatamatic

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 …

Member Avatar for skatamatic
0
163
Member Avatar for kishendra

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 …

Member Avatar for me_ansh
0
158
Member Avatar for death_oclock

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 …

Member Avatar for death_oclock
0
106
Member Avatar for JAGgededgeOB172

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 …

Member Avatar for JAGgededgeOB172
0
119
Member Avatar for dvsConcept

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 …

Member Avatar for dvsConcept
0
134
Member Avatar for Iruka_86

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 …

Member Avatar for StuXYZ
0
180
Member Avatar for knickerbocker

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 …

Member Avatar for Ramy Mahrous
0
70
Member Avatar for ahspats

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 …

Member Avatar for Luckychap
0
145
Member Avatar for ezkonekgal

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 …

Member Avatar for ezkonekgal
0
233
Member Avatar for AkhileshBabu
0
49
Member Avatar for pravallika

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?

0
40
Member Avatar for deepak777mishra

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

Member Avatar for BestJewSinceJC
0
46
Member Avatar for fomi101

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[] …

Member Avatar for BestJewSinceJC
0
57
Member Avatar for xtremerocker

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 …

Member Avatar for xtremerocker
1
115
Member Avatar for IMtheBESTatJAVA

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.*; …

Member Avatar for peter_budo
0
851
Member Avatar for animefun2

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 …

Member Avatar for Murtan
0
111
Member Avatar for dparas

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 …

Member Avatar for ArkM
0
1K
Member Avatar for vikashkumar051

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 …

Member Avatar for vikashkumar051
0
764
Member Avatar for reeshtea

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 …

Member Avatar for verruckt24
0
81
Member Avatar for Hussah

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 …

Member Avatar for pclfw
0
123
Member Avatar for ucza

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 …

Member Avatar for ucza
0
131
Member Avatar for nm_9218

Can anyone help us regarding the implementation of Incremental Shortest Path Heuristic (ISTH) Algorithm using C?

Member Avatar for Salem
0
95
Member Avatar for tillaart36

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 …

0
376
Member Avatar for rajesh_pec

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)

Member Avatar for skatamatic
0
106
Member Avatar for mrnutty

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, …

Member Avatar for mrnutty
0
143
Member Avatar for csharplearner

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 …

Member Avatar for iDeveloper
0
143
Member Avatar for damo87

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 …

Member Avatar for damo87
0
434

The End.