3,815 Topics
![]() | |
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 … | |
[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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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> … | |
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] … | |
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 … | |
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 … | |
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 … | |
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. | |
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 … | |
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] … | |
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] … | |
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: … | |
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 … | |
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 … | |
[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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
i want to know abt algorithm to solve 15 puzzle problem | |
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 … | |
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 … | |
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 … | |
[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 … | |
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 … | |
[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>, … | |
![]() | 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 … ![]() |
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. … | |
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) ? | |
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 … | |
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 … | |
:!: [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 … | |
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 … | |
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 … | |
:( 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 … | |
can any1 please help me about dijkstra's shortest path algorithm. | |
Could anyone help me to simulate the booth's algorithm for multiplication of 2 binary numbers using 8086 assembly !! Ireally need it! | |
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 … | |
[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 … | |
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 … | |
[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 … | |
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 … | |
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 … | |
![]() | 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 … |
The End.