3,815 Topics

Member Avatar for
Member Avatar for robelle

HI, the imput of my algortihme is C1,C2,C3,C4,C5,C6,C7, Target where the aim is : -C7 will be in target Position -C1 d'ont change it's position - keep the distance and the local position between C7-C6,C6-C5,C3-C2,C2-C1 C7-C6= mena the posiiton of the C7 relative to C6 (we must keep it and …

Member Avatar for robelle
0
135
Member Avatar for Labdabeta

Hello, I wrote a library for arbitrary precision arithmetic recently and spent a long time implementing efficient multiplication algorithms. Now I am looking to see if it is possible for me to optimize anywhere else. One place that I thought should be more optimizeable is my division algorithm. Right now …

Member Avatar for mike_2000_17
0
1K
Member Avatar for TheFearful

So, I was given this specification for a quicksort algorithm and I have no idea where to start. Create a template version of the QuickSort algorithm that will work with any data type. Demonstrate the template with a drive function. If it was to do a quicksort, I could easily …

Member Avatar for TheFearful
0
214
Member Avatar for mishxxbabe

Write in an algorithm using with psuedocode or flowcharting Problem statement: You need to provide the instructions necessary to read in 100 numbers and count the number of even and odd numbers. Use the get instruction to obtain the next number in the file and put to write your results.

Member Avatar for Anima Templi
0
98
Member Avatar for marium.aslam.18

“Guess the number” game One of the simplest two-player games is “Guess the number”. The first player thinks of a secret number in some known range while the second player attempts to guess the number. After each guess, the first player answers either “Higher”, “Lower” or “Correct!” depending on whether …

Member Avatar for BearofNH
0
283
Member Avatar for mixelplik

I have no clue why this search isn't working. Two majors problems (1) As is it always returns false (2) It would recognize valid IDs if instead of setting found to true, I just returned true, but I don't want to do it like that, and if there was an …

Member Avatar for rubberman
1
125
Member Avatar for martinmax3

Hello. First time posting on these forums as I am really stuck on my code. The language I am using is GML (Game Maker Language) and the program Game Maker: Studio. As I could not get any help on GM forums I am seeking help elsewhere. The game I am …

Member Avatar for martinmax3
0
2K
Member Avatar for zack123

I have a studied java and self taught on netbeans. i would like to use open source APIs and packages for writing heuristics and machine learning programs but dont know where to start. How to learn to use a new API ? Like genetic algorithm package or metaheuristic package? I …

Member Avatar for milil
0
202
Member Avatar for Bullseye

Hi, I have been trying in vain for a few weeks to implement the Eigenface algorithm for Face Recognition. It is the technique based on Turk and Pentland's paper. I am working in VC++6. Although I know the steps involved in this algorithm, I am finding it difficult to realise …

Member Avatar for hadescrack
0
370
Member Avatar for nhrnjic6

I have hard time understanding how does it happen. I mean how does : 6 / \ 3 8 / 2 I get that program finds the num on the left side whos equal to null so its smallest and it prints out 2. But how does it go back …

Member Avatar for userasad
0
156
Member Avatar for Ari_Larsson

I want to make a hangman game, using actionscript course. and I wanted to make this game a little differently, which can tell more than one letter in one guess. with string matching algorithm is Turbo BM if anyone can help me?

Member Avatar for Momerath
0
67
Member Avatar for chrisl007

Hello, as it can be inferred from profile, I am new. I have read the community guidelines and I have done prior research. I am a very weak coder(through my own fault). However, I like to believe I firm conceptual understanding. **So What is my problem?** I have an assignement …

Member Avatar for chrisl007
0
227
Member Avatar for kristina.densmore

I just started programming in C our first asssignment is writing an alogrithm to compute the volume of water in cubic feet, flowing through a pipe of diameter d in feet, with a velocity of v feet per second, give this fomula r=d/2 area=pi x r squared volume = area …

Member Avatar for cgeier
0
480
Member Avatar for zekesteer

Hi all, I’ve been given told to convert a standard C++ program into an object-oriented one, using the principals of polymorphism, encapsulation and inheritance. Our lecturer covered all three principals in one 45 minute slot. I’m completely stuck and would be grateful for any help. The standard C++ program accepts …

Member Avatar for Step-hen
0
2K
Member Avatar for CarterLangley

I have got this code from an article on secure login systems. I know basically nothing about php so I would like to know if this is good code to use? Part 1 of 8: Configure Your Server 1. 1 Install a Web Server, PHP and MySQL on your server. …

Member Avatar for kidmizere
0
3K
Member Avatar for nhrnjic6

I get the algorithm and how binary trees should work but this I don't get : look at the basic binary tree insert function : node* insert_in_tree(int number,node* p_tree) { if(p_tree == 0) { node* newNode = new node; node->num = number; node->p_left = 0; node->p_right = 0; return newNode; …

Member Avatar for nhrnjic6
0
167
Member Avatar for yamini222

Hello, I'm writting a code for comparing words in two sentences. I'm first comparing query with target (forward) and store the scores and again I'm reverse comparing target with query (reverse) and stores the score. I'm doing this inorder to solve the split word problem. For e.g. Sentence1: "Im working …

0
97
Member Avatar for vick4523zf

Hye, I have started to read and implement Cache Oblivious Btree on RAM. Starting with the Weight Balanced BTree by Arge and Vitter. The Deletion algorithm explained says that after deletion of a leaf an ancestor will get unbalanced so to merge the ancestor with neighbor and split if the …

Member Avatar for vick4523zf
0
318
Member Avatar for pspwxp fan

Hello Daniweb, I am creating a project (using NetBeans for GUI) for my Data Structures and Algorithms course. The gist of it is as follows: -Take 7 letters as input -Display a valid word as output (And later, when this issue is hopefully resolved, several words) Basically a software one …

Member Avatar for iamthwee
0
595
Member Avatar for toxicandy

So I am working on a system for work where certificates are automatically generated. I have this working but I want to make it better, instead of a super long case statement that centers the name of the person on the image by absolute positioning I want to make it …

Member Avatar for cereal
0
4K
Member Avatar for amitgorule

First of all sorry , I am developing an messenger using servlet & jsp . please help me with code in servlet & jsp a user to register via register module, followed by login and use encrypted or normal chat. Each stated function depends on its own module. The encryption …

Member Avatar for masijade
0
739
Member Avatar for rbyrd

Does anyone know where I can download Python source code for Graham's convex hull algorithm? C and C++ code seems to abound, but I need Python code, and specifically for Graham's method (not Jarvis or others). Thanks in advance.

Member Avatar for dashing.adamhughes
0
162
Member Avatar for Anushree_1
Member Avatar for tingwong

Hello everyone, this is my first help post on daniweb so please excuse me if I have done something wrong. So as for my question, I have to shuffle an array of card objects. This is the code I have come up with so far. public void shuffleDeck(){ Random seed …

Member Avatar for cael13
0
1K
Member Avatar for Geethu_1

Can anyone help us with an algorithm to randomly display elements which has different height and width units in a asp.net page

Member Avatar for BobDelaneyFriends
0
134
Member Avatar for zachattack05

Good afternoon! I seem to disappear from this forum for a while then re-appear...I've been so busy with my first born baby girl that I haven't had time to check my email much less work on any of my projects, but something has come up and I need some input. …

Member Avatar for zachattack05
0
229
Member Avatar for Alibi Ghazi

Can any one help me , i need an algorithm of the fast fourier transform without using fft function .

Member Avatar for phorce
0
143
Member Avatar for Abhijeet1990
Member Avatar for oualid.betari
-1
124
Member Avatar for cwarn23

I have been trying to create a script that will fetch an image file, store it in a 2d grayscale non-alpha byte array based on the x and y axis so I can perform math operations then save that array back to a new image file. I have come close …

Member Avatar for JamesCherrill
0
261
Member Avatar for learncoding

I have a vector personInfo that contains class objects of person details vector<person> personInfo; I am trying to use std::find to search for a existing name in the vector. I overloaded my == operator. person.h class person { public: std::string name; friend bool operator==(const person &lhs, const person &rhs); }; …

Member Avatar for Paul.Esson
0
569
Member Avatar for yogesh_6

//this is a mine...sieve's algorithm implementation please tell me where i am going wrong...// #include<iostream> #include<vector> using namespace std; int main() { int a,b,p; vector<int> v; cin>>a>>b; for(int i=a;i<=b;i++) v.push_back(i);//inserting all values upto given limit in a vector.. for(p=2;(p*p)<=b;p++) { for(int n=2;(n*p)<=b;n++) { int s=(n*p); v.erase(v.begin()+s);//erase all multiples of 2,3....from …

Member Avatar for Tumlee
0
190
Member Avatar for johnzer21

can i ask what algorithm is to used in creating a students information system? thnx

Member Avatar for KushMishra
0
135
Member Avatar for bilal.saim
Member Avatar for phorce
0
178
Member Avatar for TJuly

I have 2 Pages (Listing and Entry) using Master Page. Firstly I am in Listing page. When click the 'New' button in Listing Page, I go to Entry page below. Server.Transfer("~/Job/JobCodeEntry.aspx"); In the entry page, I use User Control for Multi FileUpload. Whenever I upload, I got this err. Help …

Member Avatar for KushMishra
0
160
Member Avatar for SurafielHabib
Member Avatar for pem

#include <iostream> #include <string> #include <vector> #include <algorithm> #include <fstream> #include <cstdlib> using namespace std; int main() { string title, nameX, nameY; const int maxData = 20; int data, maxValue; int count = 0; vector<int> v; maxValue = *(max_element(v.begin(), v.end())); for(int a = maxValue; a > 0; a++) { if …

Member Avatar for Moschops
0
122
Member Avatar for TJuly

I have 2 Pages (Listing and Entry) using Master Page. Firstly I am in Listing page. When click the 'New' button in Listing Page, I go to Entry page below. Server.Transfer("~/Job/JobCodeEntry.aspx"); In the entry page, I use User Control for Multi FileUpload. Whenever I upload, I got this err. Help …

0
83
Member Avatar for mike_2000_17

# Introduction # The subject of this tutorial is a bit more advanced than the subjects I have tackled in the past, but I hope this will find some interested readers. From time to time in C++, programmers find themselves torn apart between using a *Generic Programming* style which primarily …

2
2K
Member Avatar for CcXD

Please dont blame me for double posting, i didnt know this was the best place to post this kinda stuff >.< ------------------------------------ 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: …

Member Avatar for avishek12345
1
315
Member Avatar for rmsh92

Write a C++ program that reads data from a data file called “temp.dat”. The data file contains a maximum of 31 daily integer temperature values for a city. Your program should continue displaying the following menu until the user selects exit (option No. 6). Head of the data Tail of …

Member Avatar for dresha
0
213
Member Avatar for tashee2007

Hi, I have a problem with changing the password from Microsoft Access Database. I get an Error "[B]No data exists for the row/column[/B]". The password in the database is encrypted and when I change the password it should be decrypting the password and new password should be updated with encryption …

Member Avatar for yesha hingu
0
292
Member Avatar for james_white

hi i am currently working with php which requires registration once the user registers with his/or her details then an email is sent to the user for activation once the link is clicked the account is activated this works perfectly but the question is how do i expire the link …

Member Avatar for diafol
0
2K
Member Avatar for SHE.RE

give an example for a C++ program that sorts list of integers. The list should have a size of power of two. Example: list size = 2, 4, 8, 16… Algorithm 1. Divide the array into two lists until a single element remains in any list While merging given two …

Member Avatar for vani krishnan
0
87
Member Avatar for SHE.RE

give example of a C++ program that sorts list of integers. The list should have a size of power of two. Example: list size = 2, 4, 8, 16… Algorithm 1. Divide the array into two lists until a single element remains in any list While merging given two sorted …

Member Avatar for ddanbe
0
102
Member Avatar for opel123

okay so hi, my problem is on (i think) case 3(the delete), it actually works when you input a movie title of example: armageddon(2012), but if you input a title that has spaces in between example: when i met your mother(2009), it just crashes. i don't know what to do …

Member Avatar for Ancient Dragon
0
15K
Member Avatar for CJMW

So as part of my computer science course, we have been instructed to build an encryption process. I have a good knowledge on different encryption methods (RSA for example), however I am having a hard time trying to create my own. Now, before anyone says it, I know, using homebrew …

Member Avatar for meta.quota
0
273
Member Avatar for mythos061

I am having trouble understanding an external sort. I have to code up an implementation for the following below. I have to sort 120 records(they are really just integers), and have a memory restriction of 20 records. So I will have 6 blocks. Let me know if this is right: …

Member Avatar for tinstaafl
0
287
Member Avatar for spawn2004

Hi, I am working on a project and I have to implement a graph and to look for the shortest path. As I read so far the best way is with Dijkstra's algorithm. I am trying to do it but i have some problem. Can you please help me with …

Member Avatar for spawn2004
0
170
Member Avatar for Dani

As mentioned in another thread, as of a day or so ago, we have a new algorithm being used to generate the list of Recommended Articles in the bottom toolbar. I was just wondering if anyone found them increasingly relevant? The algo is custom tailored to you based on your …

Member Avatar for Dani
0
244
Member Avatar for jafor_rockman

I want to know google all algorithm(web 2.0, panda, penguin and more) in a text format. I want a reliable copy that I can follow . I want to become a good search engine optimizer . So I need to know all the regulations. If any one knows where I …

Member Avatar for jobtardis
0
128

The End.