homework

Ideas for Natural Language Processing project?

I have to do a final project for my computational linguistics class. We've been using OCaml the entire time, but I also have familiarity with Java. We've studied morphology, FSMs, collecting parse trees, CYK parsing, tries, pushdown automata, regular expressions, formal language theory, some semantics, etc. Here are some ideas I've come...

Help me with my SQL project (please).

Hey everyone, For this grading period, my CS teacher left us a open-choice project involving SQL and Delphi/VB. I ended up with the assignment of designing and building a program that allowed the users to, through a GUI in Delphi/VB, insert and read hurricane data pulled from a database (latest SQL Server, by the way). However, there...

C++ programming question

Can Someone tell me what I am doing wrong I have tried my best with this program, please someone with a little more time on their hands so that they can take time to look at the program and Help! Thank you all for your time:) #include <iostream> #include <string> #include <cctype> using std::cout; using std::cin; using std::endl; //fu...

what is binary save and load???

what is it and when we use it?I have to do it for my homework(creating a Bank System) but I don't know for which part of that? ...

why it returns null?

I have 3 classes that I have written some part of them below.when i write`this statement in AddStudent class ,it will show abcd1234 which is the password, but when I write it in the MainFrame class it will return null.why??? (I send my management object from MainFrame to the AddStudent with AddStudent's constructor) (I need the mana...

Justifying the result from Finding Expert System

I am a student and working term project in topic "Finding Expert System" using database from stackoverflow (September,2009) to find the list of experts for each tag. Please help me to justify the result from my system in these tags: "JAVA","PHP","HTML","groovy" and "XML" Are these users appropriate to be an expert for these tags or not...

Morris Internet Worm - anyone knows how did they manage to stop it?

Hi there, yes, this is a homework-type question but could you please help me out? In a very short presentation on the topic of Morris Internet Worm I am supposed to list the steps taken to stop the worm from spreading. My pp slides are now approaching the final state, but before I go and say that this or that is how they stopped the wo...

Most used Numbers in Lottery Database

I have an Access 2000 database that contains a table of little lotto numbers. The first column is "Drawdate", the second "P1", the third "P2", the fourth "P3", the fifth "P4", and the sixth "P5". I'm trying to find 10 numbers from the table that are used the most together. 10 numbers used 5 at a time would produce 252 combinations. Fr...

Why is this JText panl giving me amemory address?

This is an undo feature button on a calculator that I am writing. undo is the button Status is a class that holds my status. listOfStates is an ArrayList of Status. displayBox is a object of JTextFeild. What I do not under stand is that when I display previousState in the text box I get something like: Status@11dc088. I know I am missin...

Shell Sort problem

Show the result of running Shell Sort on the input 9,8,7,6,5,4,3,2,1 using increments { 1,3,7 }. I have done this part. the result is: 9 8 7 6 5 4 3 2 1 (original) 2 1 7 6 5 4 3 9 8 ( 7-sort ) 2 1 4 3 5 7 6 9 8 ( 3-sort ) 1 2 3 4 5 6 7 8 9 ( 1-sort ) Then the question requires me to determine the running time of Shell Sort using Shel...

Formatting date 2/24 as "February, 24"

I am trying t make a date that comes in like this mm/dd turn into the name of the month and day like it comes in 8/15 i want it to say August, 15 public void printAlphabetical() { int month,day;// i got the month and day from a user previously in my program String s = String.format("%B, %02d%n",month,day); Date...

please help with arraylists problem

hi, i'm trying to get my program to compile but its giving me 5 errors import javax.swing.*; import java.awt.*; import java.awt.event.*; import java.util.*; import java.io.*; import java.lang.*; import java.text.*; import java.net.*; import java.util.Scanner; public class AddressBook extends JFrame implements ActionListener { FlowLa...

Array of in_addr

Hi, I would like to create a array of in_addr using gethostbyname(). After looking on Google, I have found this short code (at http://www.logix.cz/michal/devel/various/gethostbyname.c.xp): /* * gethostbyname.c - Example of using gethostbyname(3) * Martin Vidner <[email protected]> */ #include <stdio.h> #include <netdb.h> #include <n...

SQL Query problem

Consider two table.Employee and Project.Employee table has fields like eid,ename.Project table has fields like pid,pname.Now,since an employee can work on many projects and a project can be done by many employees, therefore,as evident,there is a many to many relationship b/w the two tables.Break the many to many,and create a new table ca...

I want to give a string a value of one.

I'm entering team names into a soccer league. I have an array set up so that the league can take at most 4 teams, I also have an array that states that the number of teams in the league is exactly 4 teams. So I want to set up a counter which stops me from entering too many team names. This is a small chunk of my code str teamName ...

Using recursively returned reference to node in tree does not allow changes to the node itself

My data structures class is working with trees. We are implementing a 3-ary tree, containing 2 values with a reference to a left, middle, and right node (left subtree is less than value 1, middle subtree is between value 1 and value 2, right subtree is greater than value 2). An interface has been provided for the Tree class, and the fin...

moving through Java ArrayList with a undo button

I know that I am missing something simple here. I have got this homework all done except for moving through my ArrayList. This is a undo feature of a calculator that I need to pull and remove a object from an ArrayList. Here is the method: public void actionPerformed(ActionEvent e) { Status state; state = new Sta...

Water Jug problem in Die Hard 3 into a graph

Hi, im not too sure how to implement this... I need to create a weighted directed graph based on the water jug problem from the movie Die Hard 3 (http://www.wikihow.com/Solve-the-Water-Jug-Riddle-from-Die-Hard-3). I need to create nodes for all the possible moves (fill, empty, pour). After i need to find the shortest path to the soluti...

Write a Linked List‐based variant of Q2. Following will be the function prototype:

int find(struct node *list, int x, int start); The return value of this recursive function should be the index (position) of x, if x is indeed present in the list. If x is not in the list, it will return ‐1. e.g. if x is the data of the first node, the function should return 0, and so on. ...

frequency analysis algorithm

Hello everyone. I want to write a java program that searches through a cipher text and returns a frequency count of the characters in the cipher, for example the cipher: "jshddllpkeldldwgbdpked" will have a result like this: 2 letter occurrences: pk = 2, ke = 2, ld = 2 3 letter occurrences: pke = 2. Any algorithm that allows me to ...