3,815 Topics

Member Avatar for
Member Avatar for Krstevski

Hello friends, I want to found some algorithms for text processing. I have a lots of entries in the database and now I want to split by category (news, history, sport, business etc...) but I don't know none algorithm(s) for text processing. So, my question is, what is the most …

Member Avatar for Krstevski
0
114
Member Avatar for techie1991

I want to sort a list of dictionaries using the inbuilt sort() function for lists. The problem is I am not able to understand, how to give the function a key.. Example: [CODE] a={'name':1,'data':200} b={'name':2,'data':400} c=[a,b] [/CODE] Now, I want to sort the list c with the key being a['name']. …

Member Avatar for TrustyTony
0
229
Member Avatar for sgbhatwadekar

I am developing genetic algorithm for job shop scheduling problems. Could anyone help me about how to fine tune or improvise the solution obtained by genetic algorithms?

0
41
Member Avatar for aquarian
Member Avatar for codeorder
0
251
Member Avatar for Beat_Slayer

Aproach to the implementation of K-Nearest Neighbor (KNN) using the Euclidean algorithm. Sample Usage: [CODE]mywork = Words_Works() lit = 'literature.txt' mywork.add_category(lit, 'Literature') # adding files as category comp = 'computers.txt' mywork.add_category(comp, 'Computers') phy = 'physics.txt' mywork.add_category(phy, 'Physics') # saving categories dictionary to file mywork.save_categories() # can be loaded calling load_categories() …

Member Avatar for Beat_Slayer
0
795
Member Avatar for hueberting

damath is look like DAMA but with a twist that contains BASIC MATHEMATICAL OPERATION... hu can give me links that can help to create an AI and also to create a BOARD i dont have any idea in making a game ... this is our thesis proposal pls help me …

Member Avatar for hueberting
1
188
Member Avatar for cesvokamra

Hi guys, I've to develop a software to compress and extract files using the RLE algorithm. And I've decided to implement it so that if I've a set of chars like "ABRTTTTOPSSSSSNU" it will be converted as "ABR4*TP5*SNU". Now, the problem is that for example the char '*' could be …

Member Avatar for cesvokamra
0
119
Member Avatar for billmudry

On average, I Have been doing quite well on my "TAXA" Wood Wood Knowledge Base website in getting many of the features coded and working --- more than this slow and amateur PHP coder that he could. I even got a search engine working yesterday, something I was not sure …

Member Avatar for mschroeder
0
277
Member Avatar for selle05

Can someone help me do a fcfs cpu scheduling algorithm in vb .net? that computes the waiting time each process and compute the average. thnx

0
41
Member Avatar for sathya8819

Hi, I have this following code for watershed algo to segment an image. But I do not know what the error is. Can someone help me out [CODE]namespace watershed1 { public partial class Form1 : Form { public int X; public int Y; public int Height; // labels the pixel …

Member Avatar for kvprajapati
0
1K
Member Avatar for anzoo2009

Hello everyone I am new with algorithm, this is one of my problem which I am trying to sort out. Can anyone help me with some clues for this... Design an algorithm that will read an input weight for an item to be shipped search an array of shipping weights …

Member Avatar for anzoo2009
0
94
Member Avatar for mrnutty

Its a typical implementation of mergesort algorithm. It runs in a stable time of O(n*log(n) ). Just thought, I would add it to the library. Its been tested, although not very throughly, so if any bugs are found, just post it here, so others can be aware of them. Its …

Member Avatar for Rashakil Fol
0
884
Member Avatar for EricMack

[ATTACH=right]16482[/ATTACH][URL="http://demandmedia.com"]Demand Media[/URL], a name that isn't well-known but tends to stir existential emotions in those who do know the Santa Monica-based content farm and domain services company, confirmed some longstanding gossip and rumor on Friday when it filed for its initial public offering (IPO). Demand operates something called [URL="http://demandstudios.com"]Demand Studios[/URL], …

Member Avatar for EricMack
0
1K
Member Avatar for tressureme

Am interested in IT but am not a computer scientist, am only teaching my self. Please i have a problem with algorithm, can you give me tips on how to go about it. here is th problem am trying to solve: A quadratic equation can be written in the form, …

Member Avatar for Rashakil Fol
-4
829
Member Avatar for shiv0013

i am new to minimax algorithm. while searching in google i could roughly understand the basics of minimax. i do have a doubt in using it for tic tac toe. at each stage max will choose the node with maximum value in its child. but how do we evaluate the …

Member Avatar for fenerista
1
93
Member Avatar for Allophyl

I have the line [code=c++]#include <algorithm>[/code] at the top of a file, and the line [code=c++]nth_element(minRollArray,minRollArray+n,minRollArray+numSets);[/code] in one of the fuctions in that file. However, when I try to compile it I get the error error C3861: 'nth_element': identifier not found at that line. I would expect this if I …

Member Avatar for Allophyl
0
557
Member Avatar for jemz

hello i have problem on this program i don't know the formula to get the exact parking time, rounded total and total charge...please help me... Write a C program program to calculate the parking fare for customers who park their cars in a parking lot when the following information is …

Member Avatar for Adak
0
681
Member Avatar for creeps

I've written the following binary search algorithm and it worked on [i]my[/i] tests. I want to know if there is something I'm missing, as this is the first time I try to write it, so give me a case in which it would fail, and I'll try fixing it. I …

Member Avatar for Adak
0
149
Member Avatar for Lord_Migit

Hey folks im having some trouble with a roulette wheel selection that im programming for a genetic algorithm. I decided to do it slightly differently to the standard Roulette wheel, primarilty because its highly likley in standard version that the fittest solution will mate with itself. And that just seems …

Member Avatar for vijayan121
0
393
Member Avatar for Anyzen

Hello.. Supposing that i have this code..i want it to end after a character is pressed..but i dont know what to add...i can end it if input is negative or zero..but not char..i tried some experiments but it will end up debug assertion fail..help would be great.. [CODE] // adds …

Member Avatar for Anyzen
0
104
Member Avatar for smoothe19

A binary search tree can be used to sort a list. WE simply insert the list elements into a BST, initially empty, and then use an inorder traversal to copy them back into the list. Write an algorithm for this treesort method of sorting, assuming that the list is stored …

Member Avatar for smoothe19
0
149
Member Avatar for MoriEdan

Hi all i'm trying to make a plugin supported windows MDI application but my brain has stopped! i can't build algorithm! First of all my program will read dll's from plugin directory which is located at the same directory of my MDI parent application, i don't know what will i …

Member Avatar for MoriEdan
0
605
Member Avatar for vicky_rawat

Hi All, I have implemented general LZW algorithm, if anyone can help me with motif base lzw algorithm. I will highly appriciate this.

Member Avatar for Adak
0
101
Member Avatar for eman 22

I want easy algorithm with minimum order to get the sub-rectangle with the largest sum in an array for example array as a input 0 -2 -7 0 9 2 -6 2 -4 1 -4 1 -1 8 0 -2 sub-rectangle 9 2 -4 1 -1 8 maximum sum of …

Member Avatar for AuburnMathTutor
0
575
Member Avatar for eman 22

I want easy algorithm with minimum order to get the sub-rectangle with the largest sum in an array for example array as a input 0 -2 -7 0 9 2 -6 2 -4 1 -4 1 -1 8 0 -2 sub-rectangle 9 2 -4 1 -1 8 maximum sum of …

Member Avatar for eman 22
-1
129
Member Avatar for coding101

lets say i have an array of character like this abbcd (01234)-positions and i want to check if this array holds all of the characters to the other array aabcdd return true if ALL of the characters are available. so abbcd is my list and aabcdd would return false because …

Member Avatar for NormR1
0
37
Member Avatar for louisdinh

I wrote the tic tac toe with minimax algorithm. However, there are some bugs that i cannot figure out why the computer cannot win the human. Please help me to fix it. Thanks. I upload a zip of all files for you to check it easier. I guarantee that it …

Member Avatar for louisdinh
1
2K
Member Avatar for ronit

Hello, Does anybody know what is google current algorithm or has a link to an article that describes it? Thanks, Ronit.

Member Avatar for anna30
0
213
Member Avatar for ShadowOfBlood

I'm working on an assignment for Computer Science 121. The assignment is to write a program that prompts a user to input an integer and then outputs both the individual digits of the number and the sum of the digits. For example, it should output the individual digits of 3456 …

Member Avatar for 1stDAN
0
4K
Member Avatar for Andreas5

I finally got this exercise working and i just need someone to tell me im awesome. Or just some feedback or tips on what i can improve(probably alot:)).[QUOTE]Write a program which performs addition, subtraction, multiplication of matrices. The dimensions of both the matrices would be specified by the user (dynamic …

Member Avatar for Andreas5
0
126
Member Avatar for jiglypop

can anyone give me the source code of CAST 128 encryption algorithm written in c++ language?... I really need this for my thesis.

Member Avatar for mrnutty
0
62
Member Avatar for bimalnayak

Hi i am working on a project that is like a MLM software , but i cant find the algorithm to do that , can any one please help me regarding that so that i can do it .

0
62
Member Avatar for waphon

Thought is seed of action, since current to future; the knowledge is most influential that can be rocks the world, what is your ideal ultimate goal? We know Imagination is source of creation. So there is never alone accompanied by noble knowledge. A New Technology for Your Creation of Quick …

-2
38
Member Avatar for beanboy

Concurrency Deadlock functional programming cloud computing parallel computing distributed computing p vs np problem algorithm design communication protocols recursion. I'm a computer science graduate. Thank you.

Member Avatar for raj_developer
0
107
Member Avatar for koffrig

I am trying to implement the game of life in a Tkinter GUI with python. Here is an example of what I am trying to achieve: [url]http://www.math.com/students/wonders/life/life.html[/url] (the java applet in particular) The question is quite basic, just as my background in python and programming in general. The effect that …

Member Avatar for TrustyTony
0
159
Member Avatar for aakk

I want more information about related to find complexity of algorithm. For e.g. to find time complexity of quick sort by using recurrence relation.

Member Avatar for AuburnMathTutor
0
46
Member Avatar for monstercameron

dont know much about programming will study soon but have so many questions...i was recently researching voxels and see some advantages, i noticed that they are like bitmaps but with a third dimension, so wouldnt this be true if all voxels didnt have color wouldnt the file be smaller as …

Member Avatar for Ketsuekiame
0
178
Member Avatar for Agni

Hi, I'm using istream_iterator to read input from standard i/p and writing it to standard o/p using ostream_iterator. I expected it to print the input to the console when I hit enter and then exit but it loops for next input after printing and so on. [code=c++] #include <iostream> #include …

Member Avatar for Agni
0
203
Member Avatar for fajrulakram

hello guys... I'm new here... I got some problem with my action script code. I'm trying to connect the flash file to MySQL database. All syntax seems good and I think the algorithm is fine too. but, when I run the .fla file and i press the button, i got …

Member Avatar for Mrinny
0
129
Member Avatar for crapgarden

In my book, it says find() must be used like so: ex: iter = var.find(scores.begin(), scores.end(), score); but later it uses this in practice: ex: while (used.find(guess) != string::npos) Why can you simply pass 'guess' var to it here and not need to search a range? Isn't find() an algorithm …

Member Avatar for LevyDee
0
109
Member Avatar for shirmaster

This is my code and i do understand the logic but i don't understand the algorithm. About the Parking time coz when i give 1:26 in the time in and 2:20 in time out, i got a negative parking time. here's my code [CODE]#include<stdio.h> void menu(char a); void getData(int *a, …

Member Avatar for kings_mitra
0
155
Member Avatar for veekay123

Hi..........I am trying to create a simple text file compressing tool in c sharp? Can anyone give me the code for a simple algorithm implemented in c sharp? I have already used MSDN code using System.IO.Compression but i need something else. It shud be simple and compress a text file.....Can …

Member Avatar for Diamonddrake
0
74
Member Avatar for TotoTitus

Hello everyone. This post will contain an amount of personal feelings within it. I'm not a very experienced/skilled programmer, and my main 'background', if i can call it so is in windows forms applications (Visual C++, C#), where conceptually speaking, everything is driven by events, the only possible difficulties arriving …

Member Avatar for TotoTitus
0
195
Member Avatar for Iron_Cross
Member Avatar for scholar

Hello friends, I am looking for a fast algorithm that would calculate that for two directed graphs g1 and g2 ,is g2 is a subgraph of g2 or not. G1 will contain thousands of nodes and g will contain only 100-150 nodes.

Member Avatar for mrnutty
0
72
Member Avatar for oneml

Hi I am getting a Runtime error when I debug this code. Could someone lend a helping hand? It will be very much appreciated.[code]#include "stdafx.h" #include<iostream> using namespace std; void main(int argc, char* argv[]) { const int SIZE = 9; int numbers[SIZE]; int counter; int temp_swap=0; counter=0; cout << "This …

Member Avatar for mrnutty
0
261
Member Avatar for phummon

Hi everyone, I have a "This should be simple!" kind of problem. I need to do a little socket programming on a SunOS machine. I went back to an old school assignment I did years ago, cut-n-pasted that code, intending to basically cannibalize it for the program I need to …

Member Avatar for phummon
0
279
Member Avatar for GuyClapperton

It's an odd thing to say about a business that spends so much of its time online and is so skilled at search, video (through YouTube) and all that stuff. But for me, [URL="http://www.google.com"]Google[/URL] has only half an idea of what it's sitting on and a number of sites out-do …

Member Avatar for searchmanage
0
238
Member Avatar for sisterjo

I need help trying to write the c++ code on the following algorithm. Can anyone please help! I am totally confused on what to do. // Set TotalTax to 0 // Set TotalGrossEarnings to 0 // Set TotalMedicalLevy to 0 // Set TotalEarnings to 0 // Display Heading // Read …

Member Avatar for Kanoisa
0
188
Member Avatar for student.09

Hi, I need help getting started on this program: Write a sort method that uses the bubble- sort algorithm. The bub-ble- sort algorithm makes several passes through the array. On each pass, suc-cessive neighboring pairs are compared. If a pair is in decreasing order, its values are swapped; otherwise, the …

Member Avatar for student.09
0
324

The End.