Our Computer Science forum is the place for Q&A-style discussions related to software design and schema, mathematical theory, and algorithms.
1,077 Recommended Topics
Remove FilterThe program I'm writing is supposed to take a number of *tosses* entered by the user, this part works. Then take that and check to see if it is within a circle that is inside of a square. Then take the number that are inside the circle, and divide it …
I'm a programmer.. I love to code.. But sometimes it gets really hard to think about the solution of some problems. I have basic knowledge of c, c++ and java. I also know web programming languages like html, javascript, php, css etc. But when it comes to experience, I have …
Hi, i am not sure whether this topic would go under this category, thought this would be more suitable what are the famous software architectures? i have to do an research on this an present, I am new to this topic appreciate a reply thanks
The programming language for this is ada. So I have a lab I need to do for my CS class, and I got it basically done. The only problem is, I can enter the cost, and the amount tendered. But after that it doesn't return any of the values. What …
hello, could anyone help me by suggesting a good approximation algorithm for minimum weight perfect matching on graphs? I can't seem to find anything that makes any sense! i'm trying to implement Christofides algorithm for the travelling salesman problem in java but i'm stuck at the perfect matching bit. any …
I am given the amount of data and the time used. It asks for the time complexity. It is in a Big-O packet Below is the first problem given Algorithm A Data Time 1000 .003 2000 .012 4000 .048 8000 .192 Please explain how to get the time complexity. Thanks!
What is the running time for the following recursive function: pubic static int Sum(int [] a, int start, int end) { if ((end – start) = =0) return a[end]; else { int mid = (end + start) / 2; return (Sum(a, start,mid) + Sum(a,mid+1,end)); } } Can someone please explain …
Prove that there is a positive integer that can be written as the sum of squares of positive integers in two different ways. For some reason this is not clicking in my head and I can not figure it out. Any help will be greatly appreciated and I would appreciate …
I am thinking of something that would require extreme use of algorithms, maybe a search engine or a distributed computing systems. Any other idea for heavily algorithim based project that would of course increase my marketability ? and by the way i have 2 instead of 1 year to complete …
We had been assigned a problem in our Data Structures Laboratory that goes like this: Fill 4 queues with 10 numbers each(Ranging from 1 through 20).Each number need not be unique,i.e a number may be repeated in a queue.Remove an element from each queue.Say 1,3,11,6 are removed from queues 1,2,3 …
I'm inspecting a binary file. I have a rough idea of what is inside but there are some characters present which I am not sure how they got there. My question is highlighted in bold below. Thanks. To speed things up the first 28 bytes are reserved for the date …
Can anyone give me hint how to develop the suffix array part ? i know the concept, LCP array design but i am not gettinng how to implement in C ? can anyone please help. I know the uses, algo of suffix array as i have read a lot on …
Hi! Sorry if this is the wrong forum to post this on but... I had a Leopard computer with all developer tools installed. Then I upgraded to Snow Leopard (erase and install), and restored from time machine. I tried the gcc command only to get "gcc: command not found". The …
Hi!!!! I'm currently doing BCS. I'm in last year... I dont know what to do after my graduation. I have so much interest in programming.. But I want to practice more programs before i go to find a job. I was thinkin of takin a break for a year. Mybe …
Hi, I am not sure if this an appropriate place to post a request for help solving logic problems. I am in an intro to programming class and am struggling with the basic logic problems. I am understanding the concepts of how to put together a program (modules, decision structures, …
what will be the porgram in win32 API to display horizontal scroll bar and add keyboard interface in it
hello sir i am a student of** computer engineering** finally in my last year from **pune university** sir i took a gap after my 12th for exam preparation,nd it took **six year to complete my engineering** but sir i wanna say dat i **got failed in my first year **of …
not sure where to post this but the problem is that i cant seem to compiler a program in unix. i am using unix: SunOS unix2.its.albany.edu 5-10 Generic_142900-06 sun4u sparc SUNW, sun-Fire-V440 1-create file emacs hello.cl(l = lower case L) 2.write program in "COOL" class Main { i : IO …
Hello all! First time poster here and I'm looking for a little help figuring out the time complexity of this program. int y; void p(int x) { x = y - 1; y += x; cout << x << " " << y << endl; if (x<3) p(x); cout << …
i want to gain full knowlege of programming language..if u send something plzzz sent to me..
anyone know how genetic programming works on finding duplicate records in database?
Your program is nt behaving as wat u expect where sometimes it output the correct and at times incorrect result. During debugging,u manage to locate the problem to the following statement. A/b == c Where a,b,c are using the ieee 754 floating point representation and where the value c is …
Hi, is knowing HTML, CSS and Javascript sufficient enough for getting an internship somewhere? I'm currently a full-time college student. I'm really worried about not knowing enough for one. What was your first internship like?
Hello, I am new to this web and new to programming. I am not sure what does mean the following algorithm: set counta = 0 set countb = 0 read number while read was succesful do if number mod 2 equals 0 then set counta = counta + 1 otherwise …
[QUOTE=;][/QUOTE] Please help me to build a list of examples of stack and queue in real life situation... Conditions: The object concerned must only one object. And the object must be tangible. Example: Queue (FIFO): The bullet in a machine gun..(you cannot fire 2 bullets at the same time) Stack …
[COLOR=DarkOrchid]hi, im looking to start my final year project in computer science, but we haven't been given much guidance on a topic area, one of the things i was thinking of perhaps doing is a learning aid or something of that sort, and im not too good at java so …
Hello mates, Currently Im in my 4th year of Bachelor studies for Computer Science majoring in Information Systems. For this final year, I will need to do a project that will enable me to complete my studies. As for that, I need some of your guidance in choosing the right …
Hi, My teacher asked us for homework to do the following task: Create a binary tree with the vowels and walk through this tree using a pre-order traversal algorithm and insert the output in a array, then write an algorithm to print the array using post-order traversal. I haven't figured …
i Wana start a project on this topic. what is the scope of this topic as i want to do MS in future. Is there any coding related work in this ? I have just started this project 5 days before. thanks
If i not wrong, selection of methodology will decide the data modeling to use.. If i use Agile methodology, can i draw DFD as my data modeling? or I have to use UML? (DFD is much more easier for me)
I was looking for advice concerning the compatibility of computer science with mechanical engineering. I have had an interest in mechanical engineering and to me it seems totally interesting to have a degree for both fields. Is this something that is pratical at the professional level ?
hi frnds, do anyone of you have theoritcal notes on Computer Organization, which include topics like Number Systems, Hamming Code, Error detection method ?? if you have can u pls let me know ?
let's assume we create 3 integers.each takes 1 byte of space int x=4 (1 byte) int y=4 (1 byte) int z=6 (1 byte) when we launch the program after compiling, does the program take 3 bytes of RAM space? the more declarations ,the more momory it takes in RAM?? 2 …
I am currently working on my computer science project and I am working on transforming a pole into a robot and I cannot seem to get it to work right. I really need some help!! please! I am working with eclipse.
Good day. I would like to ask for a better and clearer explanation for the Find-S algorithm. You see, the one in Machine Learning book was not that clear to me and almost handouts I saw from the net rely on that book as well. Given target = <?, Cold, …
I am currently a final year Business Information Systems student. I have the task of completing a final year project.I am not much of a programmer. I am not sure what project i should tackle. I am thinking of a system whcih automates somthign with finance. If anyone can give …
i'm learning about networking on a site and there says there are 3 types of sending data: unicast, multicast and broadcast in the unicast case the IP layer encapsulates the IP destination(let's say "derp"). the interesting fact i've read about the unicast is that all machines within the same network …
I building a android system for single user (college project) and i require to draw a modeling diagram (DFD, UML something like that) I just wonder which modeling diagram is suitable for 1 entity? How my system work: User enter input, system give out output to user. I tried with …
hello every one, this is my first post in daniweb and i'm so glad to join you guys. for my final year in computer science i'm working in speech recognition as an application in android mobiles..... i really have some issues like where to start and what helping libraries is …
I just started taking Logic and design and Im not understanding the whole concept. I try writing it but know that its wrong and im leaving to many things out and dont know what to write or how to write it. My book tells me "this is how its done" …
Tab Split String Now Working. Please Help. I wrote a C# program that reads code one line at a time. Each line has data seperated by tabs. Here is what my C# code is supposed to do. The line is supposed to be split into a string array by using …
Can anybody share the algorythm to perform inorder traversal of a binary search tree using parent node(without stack or recursion)
I've been using the HxD hex editor by Mael Horz and recently learned about its ability to display the contents of my entire hard drive(about 1 terabyte). My assumption is that all this data retrieved from the hard drive must be kept in RAM first, and then it can be …
Hi, over the past couple of years I've been learning C++ but now I am looking for another programming language to learn. I want to learn something that is widely used. I was thinking about either java or python. Does anyone have any experience with either of those? Or suggestions …
Hey, iv been looking around for help with a problem with a program i am working on, but i cant find an appropriate category on any forum really. The program is a flash swf compiler. But at the moment i am having problems understand a certain data structure (the abc …
Hi all !! I am planning to do a masters in computer science from a US university. I am not sure which field I should specialize in. I have my interests, but job prospects are also important to consider, which I have little idea of. I am listing the specializations …
what is genetic programming?can you give an example? can anyone suggest an another name for this topic plz......?
The End.