3,815 Topics

Member Avatar for
Member Avatar for Unfettered

Hey, I'm a masters degree student specializing in Evolutionary algorithm design. I've done a bit of java work and haskell..but have very little experience with guis and threads...wich may be where most of may questions stem lol. feel free to give me a pm with some AI questions if you …

Member Avatar for christina>you
0
42
Member Avatar for dkdeleon68

[COLOR=blue]How many levels of nesting are there in this design?[/COLOR] X is an integer test score between 0 and 100. input X if (0 <= X and X < 49) output "you fail" else if (50 <= X and X < 70) output "your grade is" X output "you did …

Member Avatar for Rashakil Fol
0
130
Member Avatar for Tim Gleebitz

Hi fellow programmers. I'm quite new to 'C' and I’ve been working on this personal project recently and have struck a spanner in the works! I am quite bemused by this piece of code I am to assemble (below). I think it’s fairly simple but can’t quite grasp it! Any …

Member Avatar for John A
0
114
Member Avatar for wujtehacjusz

Hi! I have a problem with Dijkstar algorithm. At my university I was told that to use this algorithm I have to have: [LIST] [*]array of distances from starting node to all unreached nodes going only via node in set reached. [*]set of reached nodes (I pressume that it would …

Member Avatar for wujtehacjusz
0
111
Member Avatar for XpatienceX

Algorithm Verification X is an integer test score between 0 and 100. input X if (0 <= X and X < 49) output "you fail" else if (50 <= X and X < 70) output "your grade is" X output "you did OK" else if (70 <= X and X …

Member Avatar for joshuatree
0
80
Member Avatar for alt234

I'm trying to write a recursive merge sort on a linked list. I'm basically stuck on the split portion of it currently. I came up with a solution quite similar to many other solutions I've found on the web. Many people say it works but so far my solution doesn't …

Member Avatar for thinkfast
0
121
Member Avatar for algo_man

I've two algorithms and I want some one to explain the time complexity for each one. First Algorithm: --------------------------------- [code] m = n for i=1 to n if m is even then for j=1 to log n count++ end for end if m=m/2 end for [/code] ---------------------------------- What is the …

Member Avatar for Infarction
0
134
Member Avatar for delphi_uk

Hello to you all, I am having problems with some code that I am working on for a text parsing system from an external *.txt file. The problem seems to stem from the Tokenize function, as I get a: "LNK2019 error: unresolved external symbol "void __cdecl Tokenize(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> …

Member Avatar for delphi_uk
0
107
Member Avatar for mzd12111

hi Guys this is my problem : a) what should i have to show to Proove that a sort algorithm work well b)what is the order of this algorithm : [code=c] void mySort(int[]A , int n){ int t,i; for (i=1 ; i<=n; i++){ while(A[i] != i){ t = A[i]; A[i] …

Member Avatar for mzd12111
0
125
Member Avatar for Lampard33

It looks like a couple weeks ago I was hit with a Google algorithm change (my guess), and all my pages - that ranked on the first two SERPs - suddenly now reside on 4-5, or not at all. Obviously this kind of thing hits a lot of us from …

Member Avatar for Dexter515
0
70
Member Avatar for fulyaoner

Hi to everyone... I am to write a code about finding the least coins number to make up an amount that is given by user. It is a trivial question for a programmer and I did code well. In Canada, there are 2 more currencies, Loonie = 1$ and Twonie …

Member Avatar for fulyaoner
0
407
Member Avatar for Lazaro Claiborn

When I first became interested in network security I read about data encryption, specifically encryption algorithms associated with the Session layer of the OSI model. I had an idea and although doesn't directly pertain to network communication security, it can however be compared with the Public\Private key distribution concept. My …

Member Avatar for Lazaro Claiborn
0
144
Member Avatar for nanasei

hi am new to this community and am a 21 yr old guy from ghana in west africa and am studying IT in the university but i will like to have some help in vb.net on how tto write an algorithm for a 2 by 2 matrice.

Member Avatar for christina>you
0
27
Member Avatar for Laiq Ahmed

I want to generate the following pattern using for() loop only.... how can i do this i've tried but unfortunately failed to solve .... when user inputs 3 [COLOR=#008000]1 1 1 1 1 1 2 2 2 1 1 2 3 2 1 1 2 2 2 1 1 1 …

Member Avatar for Laiq Ahmed
-1
116
Member Avatar for covertx

Hi all, I'm trying to add a little bit of extra functionality to my programme by using the Graphics class to draw lines in accordance to values held within text boxes... I've converted the values of two textboxes to Int32's like so: [CODE] gUK = Convert.ToInt32(tbUK.Text); gNotUK = Convert.ToInt32(tbNotUK.Text); [/CODE] …

Member Avatar for covertx
0
108
Member Avatar for covertx

Hi all, I'm trying to add a little bit of extra functionality to my programme by using the Graphics class to draw lines in accordance to values held within text boxes... I've converted the values of two textboxes to Int32's like so: [CODE] gUK = Convert.ToInt32(tbUK.Text); gNotUK = Convert.ToInt32(tbNotUK.Text); [/CODE] …

0
55
Member Avatar for rQQt2

Hello folks I'm trying to simulate a magic square algorithm, but having some problems. The program successfully creates the magic square, but when I'm trying to print it, the VC2005 compiler says "vector subscript out of range", which it shouldnt be. Any help would be appreciated. Cheers Here's the code: …

Member Avatar for rQQt2
0
449
Member Avatar for jrcagle

So this isn't a Python question exactly, but the code is in Python, so there it is. I have a mostly-working version of pacman -- currently, one monster v. pacman -- that includes the usual features: eat the power-up, chase the blue or flashing ghosts, get points. When a ghost …

Member Avatar for G-Do
0
2K
Member Avatar for Rebeli

Hi I have a little exercise that I was assigned. This is what needs to be done: - Read 10 numbers from keyboard. - Sort them by Insertion Sort algorithm - Print the sorted numbers in ascending order This is for MIPS and the program I use to run it …

Member Avatar for Lazaro Claiborn
0
692
Member Avatar for Primo

[I]You are to run a series of trials. For each trial you will pick a random number between 1 and . Call this number . You will run tests with this number . For each test you will pick a second random number between 1 and ; call this second …

Member Avatar for masijade
0
129
Member Avatar for Lazaro Claiborn

Hello, I've recently, inadvertently, found incentive to write my own Tic-Tac-Toe game. I've been working on it for more-or-less 15 minutes and would like some help or a point in the right direction. It is almost finished but there is a function, namely the "_scan4Winner" function, that I must write …

Member Avatar for Lazaro Claiborn
0
469
Member Avatar for kugan80

can anyone help me? How to encryption/decryption algorithm for mdb table? Private Sub cmdSearch_Click() On Error Resume Next HighlightText txtSearch, True If txtSearch.Text = "" Then Else Dim con As Connection Dim rs As Recordset On Error Resume Next Set con = CreateObject("adodb.connection") con.Open "Driver={Microsoft Access Driver (*.mdb)};DBQ=" & App.Path …

Member Avatar for kugan80
0
158
Member Avatar for tatumkay

just started c++ class.... we use the absolute c++ book after starting to read this book i decided to buy c++ for dummies and borrowed a book titled object oriented programming with c++ (book is from india written in english) i still have no idea where to start on these …

Member Avatar for Ravalon
0
173
Member Avatar for Scope9000

Can any1 just give a quick explination to each of these and what they do thanks. [code=vb] Private Sub cmdAverage_Click() picBox.Cls picBox.Print "Name", "Ass1", "Ass2", "Ass3", "Total", "Average" picBox.Print "__________________________________________________________________________" For a = 1 To c Average(a) = calAverage(ass1(a), ass2(a), ass3(a)) picBox.Print names(a), ass1(a), ass2(a), ass3(a), total(a), Average(a) Next a …

Member Avatar for WaltP
0
128
Member Avatar for arshad mohammed
Member Avatar for edmicman

I'm working in VBScript and want to sort a multidimensional array on two of the columns in it. I've got a function (based on TONS of examples around the Net) that is sorting on one column, but I can't seem to get how to then do a second column. I'm …

Member Avatar for edmicman
0
384
Member Avatar for fawadhusain

Hi everyone, Does anyone knows, where i could find a java implementation for the Latent semantic analysis technique/algorithm ( eg for word/document) or even just how to decompose a matrix using SVD(singular valued decomposition). I need the code preferably in jave ( or c/c++ and i will code in java …

0
35
Member Avatar for *Alice*

Hey guys, For one of my assignments, i got this little exercise: "[COLOR=#000000]Add at the class Rectangle a method move(Point p) which[/COLOR] [COLOR=#000000]moves the rectangle in the point indicated by the parameter, a method[/COLOR] [COLOR=#000000]translate(int x, int y) which translates the rectangle to the right[/COLOR] [COLOR=#000000]along the 0x coordinate axis …

Member Avatar for thekillerkat
0
77
Member Avatar for Bench

[B]Intro[/B] The focus of this tutorial is the code relating to decision making and selection, and not the I/O code. I [U]do not[/U] advocate using scanf() in this way for anything other than testing blocks of code in 'toy' programs. If you feel the need to use scanf() when writing …

Member Avatar for Dave Sinkula
0
3K
Member Avatar for totengtoh

guys, i am making a program in java. i have to use a sorting agoritm. i manage to get some from the internet but it seems that they are too technical and hard to understand and i dont know where to put them and how to use them. here is …

Member Avatar for totengtoh
0
130
Member Avatar for fesago90

[CODE=c++]#include <cstdlib> #include <iostream> #include <string> #include <algorithm> using namespace std; int main() { string foo = "123"; if(count_if(foo.begin(), foo.end(), isdigit) == foo.size()) { cout << "\nGreat!\n"; } cin.get() }[/CODE] Does not work on bloodshed v4.9.9.2!!! It outputs the following error: [QUOTE]no matching function for call to `count_if(__gnu_cxx::__normal_iterator<char*, std::basic_string<char, std::char_traits<char>, …

Member Avatar for Ravalon
0
158
Member Avatar for ingeborgdot@yah

Model Brand VisionTek Model VTK-THMCE550P Specifications Video Decoder ATI Theater 550 Pro ASIC TV Tuner Yes FM Tuner Yes Remote Control Yes Interface PCI Video Format Hardware MPEG2 Encoding Operating Systems Supported Microsoft Windows XP SP2 or XP Media Center Edition System Requirements Intel Pentium 4 or Celeron, AMD Athlon …

Member Avatar for ingeborgdot@yah
0
99
Member Avatar for mrik1984

I need help. Can anyone send me a sample code of the porter stemming and the bottom up parsing algorithm using carbide.c++? Here is my email address [I]<< email id snipped >> [/I]I really need help. Thank You. Meyrick

Member Avatar for ~s.o.s~
0
57
Member Avatar for d_1386

Write a program that can simulate the following CPU scheduling algorithms: 1. FCFS 2. RR (new processes are added at the beginning of the ready queue, the quantum is one time unit) 3. Priority based 4. SJF non-preemptive 5. SRTF The program can be written in either C or Pascal. …

Member Avatar for Salem
0
264
Member Avatar for unclepauly

if an algorithm takes a total time of T(log n + n^2), is this big O(log n + n^2) or simply big O(n^2) ?

Member Avatar for unclepauly
0
65
Member Avatar for DynamitMsk

Hello, I'm working on a stock trading assignment. I have developed the algorithm for trading, and now I need a little help on getting the data from a server. There's a server that replies to the following request: servername stockcost <stockname> and I assume I can use it like: int …

Member Avatar for John A
-1
134
Member Avatar for mymirror

can somebody help me to know a vert efficient algorithm in dividing more than 32 bytes of number? e.g. 65534.99/2326.84=28.1648029 =>6553499/232684 =281648029 =>63 FF 9B/03 8C EC=10 C9 9B 9D how could that be? my algo is that use shifts and subs but in a bitwise manner i want to …

Member Avatar for mytime19
0
193
Member Avatar for Kompot

:!: [U][COLOR=#000000]Minimum-weight Path.[/COLOR][/U] [COLOR=#000000] [/COLOR] [COLOR=#000000]An agent is required to move from the top row to the bottom row of a m × n grid, (i.e. from start position (0,j) 0<=j<n to end position (m - 1,j) 0<=j<n). On each move, the agent may only take one step rightward, diagonally …

Member Avatar for Lerner
0
96
Member Avatar for Rooro

Hello everyone ... : ) i'm studying data structure and i'm trying to collect all the point in this course . what I have now is a question about sorting . I want to learn how can I do it and code it in the right way .. [quote] The …

Member Avatar for Rooro
0
109
Member Avatar for mears

I developed a custom pattern language that is used to validate output from tests. I convert patterns to NFAs and then to DFAs, which are used by my test analyzer to validate test output in real time. At first, I only supported operators that are defined as part of Thompson's …

0
47
Member Avatar for rixius

:( I've been looking at the [url="http://theory.lcs.mit.edu/~rivest/rfc1321.txt"]text[/url] written by professor Rivest, and I REALLY do not understand the MD5 algorithm. It produces a 32 bit encryption.. so its 32 characters, no matter what. But you can hash a string with an unlimited amount of characters... But if you do the …

Member Avatar for WaltP
0
270
Member Avatar for drake_bower
Member Avatar for Infarction
0
54
Member Avatar for kiks

Could anyone help me to simulate the booth's algorithm for multiplication of 2 binary numbers using 8086 assembly !! Ireally need it!

0
71
Member Avatar for johnD29

Maybe this is a bit off topic, but it's used in programming (the class is introduction to programming, using only algorithms and no computer programs). This is the problem: "An airline has three airplanes, each with a capacity of 100 passengers. The company has three routes, each flies once a …

Member Avatar for Infarction
0
99
Member Avatar for Tkassis

[B]I am working on an exercise given in class. I have managed to do most of it but I a a bit stuck on the permutation part. Here is what is required of me:[/B] Subject: Transformers An ideal electrical transformer has an input voltage and current, Vin, Iin and an …

0
66
Member Avatar for Shailesh33

Hi, I am having trouble to find the specific information about Dijkstra agorithm and Shortest Path techniques for my following two problems. Please help me by providing either specific answer or URL for my questions. I appreciate your help. ============================== [1] [COLOR=#000000]What is the running time of Dijkstra’s algorithm if …

Member Avatar for stymiee
0
160
Member Avatar for Dani

[b]True and False[/b] The backbone of computer science is logic. Most often, those with logical minds make the best programmers. Hence, a very important programming concept is that of boolean algebra. A boolean expression is a true or false statement. In the world of computers, a true statement is represented …

Member Avatar for lol_hacker101
0
1K
Member Avatar for nnobakht

hi guys, I have an assignment that is due on december first and i cant seem to get a wrap around it and was wondering if someone could help. I have been given a Robot module with 17 testboards and some predefined functions such as sensor, move, currentPosition, boardSize and …

Member Avatar for nnobakht
0
114
Member Avatar for qaizaar

i have a project where i am suppose to encrypt or decrypt a message typed in by the user using the ceaser encryption algorithm and printing it back, i need some help in as to how to write the encryption alg, (ill figure the dec out from there), heres the …

Member Avatar for qaizaar
0
301
Member Avatar for rQQt

Hello I'm writing a little selection sort program in C. Unfortunately the algorithm doesn't work correctly. After the selection sort some float numbers in the array are rounded down to whole ints. Here's the example: [inlinecode] Code: enter input filename:data // input numbers 5.000000 7.000000 -48.400000 8.800000 8.400000 1.500000 8.400000 …

Member Avatar for Salem
0
96

The End.