3,815 Topics
![]() | |
I'm writing pseducode for a Java class. Obviously being pseudo the language shouldn't matter but thought I'd mention it as it would explain any 'bias' I have. BTW, this is my first programming class. I'm revising for my end of semester exam. Write a pseudo code algorithm which will input … | |
I'm currently working with a group of my classmates on a recipe measurement converter, and I'm currently on the most difficult code of the three that is my part of the project. The code is basically for getting the amount from the user, a fraction. I have based my algorithm … | |
Let say we have N number and N is odd. Among the N numbers, two of them equal to each other except one. For example, let's say we have 7 numbers, which could be 5, 3, 4, 1, 3, 5, 1. Only 4 is distinct, other number always has anther … | |
Hi, On my websites, I encrypt passwords using a combination of hashing algorithm (Which I am obviously not going to post on a forum but its along the lines of [icode]md5(substr(whirlpool($Value), 0, 7));[/icode]) What is blowfish, how do I use it and how much more secure is it than a … | |
I need to make a divide&conquer algorithm for finding the dominant element in an array (dominant element = element which exists at least n/2 times in an array within the size n) . All you can do between those elements is compare them (no < relation or > relation) . … | |
if anyone could please help me with the c++ coding of the following:- Write a c++ program that does the following:- Accepts as input n(to be entered at run time and n must be divisible by 3) integers and stores them in a Stack, sort them using any sorting algorithm … | |
Hi, I looked the all forums but I didn't find any knowledge about ml programming language. I had a problem about writing a recursive function algorithm in ml .Please help me what can I do to write this algorithm.It is very important for me .If you know any web site … | |
How do you exactly go about writing an algorithm to check for tree isomorphism? | |
I have a algorithm problem to ask: There are N persons, and each of them knows one distinct gossip message. The two of them just make a phone call, so they could share messages they know. Then at least how many phone calls do they need make , so that … | |
CSCI 1170: Open Lab Assignment #5 Program due: Thursday, Oct 29, 2009 at midnight as the day turns to Friday Oct 30, 2009. Professor: c8296800 code: ola5 Purpose of this assignment: The purpose of this assignment is to understand the while loop programming construct. This assignment will let you 1. … | |
need to decode and encode the following text=== {Newton’s Law of Software Engineering Law 1: Every Software Engineer continues her/his state of chatting or forwarding mails unless s/he is assigned work by external unbalanced manager. Law 2: The rate of change in the software is directly proportional to the payment … | |
I don't get what is happening here. I used this exact code for another algorithm and it works but here i only get large negative numbers for an input, what gives? My output is: floatArray[0] is -107374176.000000 floatArray[1] is -107374176.000000 floatArray[2] is -107374176.000000 floatArray[3] is -107374176.000000 floatArray[4] is -107374176.000000 floatArray[5] … | |
hi every one i am having problem in accessing my 2d linked list..i am able to get a function in a 1d linked list but this is quite confusing.please if some one could give me a basic algorithm which i could work with i would appreciate it...thanks the function i … | |
I'm in the process of designing a battleship game and I need some help of why I'm coming up with a error. The error is:error C4430: missing type specifier - int assumed. Note: C++ does not support default-int. Another question is, how would i randomly place the battleships in the … | |
Hi, I was wondering if anyone would have some pointers as to creating an odds algorithm for a online bookmakers. I'm creating one as a project and am stuck as how to go about creating one in c#. thanks Youngfitz | |
Hi, I've been writing a program that encrypts and stores passwords (it's for uni, I'm a newbie), and I'm having a problem with some misbehaving variables. I hope someone can shed some light on it for me. :) I have a function which takes a string as a parameter and … | |
Hi, I've tried to make a program that inputs two 3D vectors and then calculates various norms of the first vector, and the dot product and addition of both vectors. My code is working fine when everything is put into the main, however I wanted to create some functions to … | |
Can anyone please help me with this assignment. Its due friday and i have no clue how to do. thanks in advance for your help. _____________________________________ Question Design a MIPS assembly language program to implement the multiplication algorithm of the diagram provided in the link below [URL="http://www.mediafire.com/imageview.php?quickkey=omz4myzonuq&thumb=5"]http://www.mediafire.com/imageview.php?quickkey=omz4myzonuq&thumb=5[/URL] Demo the program … | |
I've been working on a piece of code for a while, and it works as it is intended to. Now, though, I'm trying to the code down so that there is one main functions and every "action" is a function that is called. But, I have very little experience with … | |
I have to teach someone XML revalidation by tomorrow morning and I don't have much idea about it. It is something about XML schema and you have to revalidate it... Can you give me some idea about how I should go about it? [CODE]Given two abstract XML Schemas, S = … | |
Can anyone help me with the algorithm for the height of a n-ary tree, I have been looking and could only found for a binary tree, thanks in advance. | |
The code will be able to detect the face from webcame then determine weather it's in any situation relay under sad,happy ,...etc then play music file according to the situation.[code]Hello every body,I'm doing Project on Face detection situation,weather if it indicate happy ,sad....etc situation.So the problem is there is many … | |
Hey, so I need to write an algorithm that will do the following and run in O(n): Search linearly through an array of size n and for each element check whether array[i]>array[i-k] for all k=1,2,...n/5. Its easy to do this with two loops but I cant figure out how to … | |
I need help!!! !I am just starting a programming class but teacher hasn't taught anything about writing pseduocode, yet she expects us to be able to do so. Here is what she wants me to do, but the book doesn't elaborate much on this. Any help will be appreciated even … | |
please i need help in my c++ assignment its about loop ( while and for) and i cant do it im gonna write it and hoping if any one can solve them before 25\10 pleaaaaaaaaaaaaaaaaaaaaaaaaaaase 1- write a c++ program that will read in the integer N, and calculate: a) … | |
I am Making an implementation to the lz77 compression algorithm, but I couldn't calculate the offset, pleasei f someone can help tell me, [CODE] public class Main3 { public static void main(String[] args) { StringBuffer input = new StringBuffer("ADABRARRARRAD"); StringBuffer toBe = new StringBuffer(input); StringBuffer done = new StringBuffer(""); String … | |
I've gotten some great responses to my questions here, so I'm really grateful for this resource of programmers on this website. I've been working on an algorithm and am almost completed with it, but I'm finding out the very last steps are the most difficult for me because they require … ![]() | |
Write a Java program that uses an algorithm implementing the Gauss-Jordan method to solve the system of linear equations given in the introduction. Your output must show the output of every calculation to no more than seven (7) decimal places. You must create and use a function that cuts off … | |
Hi, I am new to algorithms and i have following assingment to do, although i understand Greedy algorithm but i have no idea how to proceed please help me solve these questions 1. Prove that a graph with n nodes and more than n-1 edges must contain at least one … | |
I have an encryption program. but i dont know what type of encryption algorithm it is. Here is what the program does: -alter randomize function according to constant string -perform XOR operation to the string to be converted with the use of altered randomize function -convert string to ascii -convert … | |
Hi all, Can anyone point me to an efficient binning algorithm. I have a problem similar to the following: I have recorded the heights of 10000 randomly selected people and I want to sort their heights into 20 bins between 1.5 and 1.8m (ie number of bins much less than … | |
please anybody tell me about the work process of search engine's algorithm. | |
Here's the problem: "Daily life magazine wants an analysis of the demographic characteristics of its readers. The Marketing department has collected reader survey records containing the age, gender, marital status, and annual income of readers. Design an application that accepts reader data and produces a count of readers by age … | |
Hi, I am currently taking a class on data structures(analyzed in C++) at a university and I really find our current text book, Data Structures and Algorithm Analysis by Mark Allen Weiss, hard to follow. Does anyone know any good data structure books that pulled you in? Thanks for your … | |
I am having trouble with stacks and infix and post fix this is my error: [COLOR="red"]Reading from file "input16.txt": Infix expression = (5) Exception in thread "main" java.util.EmptyStackException at ArrayStack.pop(ArrayStack.java:51) at test.infixToPostfix(test.java:140) at test.displayArray(test.java:87) at test.main(test.java:53)[/COLOR] this is the txt file: (5) (1+1) ((9/3)-2) (9-(3/2)) (1+(4-(9*(6/(5%7))))) ((1+4)-(((9*6)/5)%7)) (((1+(4-9))*6)/(5%7)) ((1+(2-3)) (1+(2-3))) … | |
![]() | hi currently I am developing a game in python called TankWar, it is basically 1vs1 game style and each player has its own turn. Both players control their respective tanks using the control keys and WASD and they can specify the missile's angle, velocity, tank position. I am using an … ![]() |
Running Ubuntu Intrepid. Installed Dansguardian recently. When I try to start or restart dansguardian, I get the following error: [CODE]micah@micah-ubulaptop:~$ dansguardian Unable to getgrnam(): Success[/CODE] I know this has something to do with the group in my dansguardian.conf file. The only thing I can see that relates to that is … | |
So I'm in third year Physics and I'm down to do a project in C++ in a few weeks. I've got a weak background in the subject (mostly limited to simple calculations, can't do images or user interaction appart from cin, much to my dismay >.<) but I'm going to … | |
Alright, I didn't get this one quite right on the homework, but I am trying to figure out exactly how to solve this thing. The answer was n log n , but how do you total this up when going through the loop [CODE] i = n 1 while i … | |
[icode] import java.util.Scanner; import java.io.File; import java.util.StringTokenizer; import java.util.InputMismatchException; import java.io.FileNotFoundException; public class KashiwabaraNicole16test { /******************************************************************************* * Outputs integers from user input external files. ********************************************************************************/ public static void main( String[] commandlineArguments )throws NullPointerException { //Error Checking For Command Line Arguments.. if(commandlineArguments.length == 0){ System.out.println("Please enter the file name as the … | |
Hi , I am studying C programming.I am suppossed to do a task whic is - if we place an object of any shape or size on a scanner ,the program should foud the pixel of the object placed . Then it should calculate the exact area of the object … | |
Hello all, I'm trying to make a program in C, but it's actually the algorithm that's giving me hell. The goal is to create a program that calculates and displays the [I]total number of end-locations[/I] (all locations, including similar ones) an object can reach in a 2d board (grid), using … | |
I'm not very math profficient yet, since I haven't taken enough Math classes at school, but we're covering asymptotic notation and running times of algorithms in class, which seems pretty mathy (yes mathy is a word). Anyways, first, I need to clarify: upper/lower bounds refers to max/min cost of an … | |
I have been assigned to write an algorithm. I would like to know if there is a way I can get some of you to look at it and tell me if I am correct. I know according to the rules I am not just suppose to post my work. … | |
OK I am going to try to clear up all of the confusion, so bare with me :) The reputation system still exists in the same manner it always has. However, the algorithm to calculate rep power (how much influence you have on another member) has been altered so that … | |
I had to take computer science for my major, but I have no idea what's going on in this class. I have to write an algorithm that reads in ten positive integers from the keyboard (upper size limit is 99). Output the additive total of the ten numbers and also … | |
Can anybody help me find a way to solve the problem Problem You are asked to assign m of the programmers among n projects. Assume that all of the programmers are equally competent. You have figured out how much benefit i programmers will bring to project j. View this benefit … | |
Can someone help me to solve this algorithm, I tried our school book but can't understand it. I'm not good at math! Should be simple, but i just can't understand it! [IMG]http://i38.tinypic.com/5wdau.jpg[/IMG] | |
Maybe someone can help me with this. I've been working with python for less than a week, and it's my first programming language. I'm looking to figure out some basic things in python for an algorithm I wrote in a pseudo-code. I'd like to know how I can take an … |
The End.