HELP NEEDED WITH SOME QUESTIONS

Could ye guys help, I have some questions and I dont know the answers of them! any solutions would be great
Distinguish between composition and inheritance as used in object-oriented programming. As part of your answer, provide examples of different situations in which each would be more appropriate.
What is meant by recursion as an algorithmic strategy in working with abstract data structures, and why is such an approach considered worthwhile? Illustrate your answer with an example sorting algorithm in Java that can be sorted linearly and recursively.
Given an alphabet of {x,y,z} possessing the following frequency distributions {1/8, 1/4, 5/8}, show how this information may be used to construct a prefix code binary tree. Given the code 11000111100, show how this is decoded using this construct.
Any ideas??

086kerry wrote:
lad if you had seen what I had to do already, its not as if I want the answers, just help. I cant find anything satisfactory on the web.Not to quick are ye?
If you can't do more than post your assignment and cry for help then you might as well give up now. Nobody is going to do your work for you. You have done NOTHING yet so start working on it and if you run into problems come back with your code and ask questions about it.

Similar Messages

  • Please help  me with some questions with batch input session?

    hello everyone.
      I come to some questions  like
    1 What is a batch input session ,
    2  What is the alternative to batch input session?
    3  An ABAP program creates a batch input session.   We need to submit the program and the batch session in back ground. How to do it? 
       would you please help me with the questions, couldn't thank you more.
       Best regards
                                                                          Frank

    Hi
    Batch Input Session:
    BATCH INPUT SESSION is an intermediate step between internal table
    and database table. Data along with the action is stored in session
    ie data for screen fields, to which screen it is passed, program
    name behind it, and how next screen is processed.
    Three processing modes of executing Batch Input Session :-
    Run Visibly : You can correct faulty transactions online & work step-by-step through  the transactions not yet executed.
    Display Errors only : You can correct faulty transactions online.   Transactions not yet executed, but without error, run in the background.
    Run in Background .
    2) What is the alternative to batch input session?
    Call transaction.
    3) An ABAP program creates a batch input session. We need to submit the program and the batch session in back ground. How to do it?
    go to SM36 and create background job by giving
         job name,job class and job steps (JOB SCHEDULING)

  • Help me with some question about Worker/Service/Task in JavaFx 2

    I have read some articles in the forum adout mutithreading in JavaFx2, and now I know if I want to do some long-run jobs, i should use Service/Task.
    But my application needs a function like this:
    1. here is a long-run job(something like getting data from database or other resources);
    2. If I clicked a button, then the job started and get the data.
    3. When the job is done, I show the data in the tableview of my JavaFx application.
    4. then the job waiting some random time(such as 100 seconds).
    5. then the job started again automaticlly.
    so, the steps are 2->3->4->5->3->4->5->3->4->5->........
    so, the important things is that the job runs many times automaticlly.
    I know I should implements the job as a Service or Task in javaFx, But where should I put my "while(true){ job.start();sleep(random_time);}" loop code to make the job start automaticlly after some random sleep time.
    I wonder what is the best practice for this use case.
    My english is poor, but i hope you can understand what i'm dealing with.
    Thank you very much!
    Edited by: user9529194 on 2011-12-18 下午8:20

    Hi,
    Based on the response from John,
    I think you can acheive the functionality as below.
    // Creating the tableview.
    TableView<Person> personTable = new TableView<Person>()
    // Instantiating the personlist.
    ObservableList<Person> persons = FXCollections.observableArrayList();
    // Setting the list to the table.
    personTable .setItems(persons)
    final Button button = new Button("Refresh");
    final Timeline repeatTimeLine = new Timeline(
          new KeyFrame(Duration.seconds(100), new EventHandler<ActionEvent>() {
                @Override
             public void handle(ActionEvent event) {
                    // Call the service method to update the list.
                       PersonService.updatepersons(persons );
    button.setOnAction(new EventHandler<ActionEvent>() {
         @Override
         public void handle(ActionEvent arg0) {
                 repeatTimeLine.setCycleCount(Timeline.INDEFINITE);
                 repeatTimeLine.play();
    });And in the Service class...
    public void updatepersons(final ObservableList<Person> persons){
              final Task<List<Person>> getPersonTask = new Task<List<Person>>() {
              @Override
              protected List<Person> call() throws Exception {
                   return getPersonService().getPersons();
         getPersonTask .stateProperty().addListener(new ChangeListener<State>() {
              @Override
              public void changed(ObservableValue<? extends State> arg0, State arg1, State newState) {
                   switch (newState) {
                   case SUCCEEDED:
                        persons.clear();
                        persons.addAll(getPersonTask .getValue());
                        break;
                   case FAILED:
                        break;
         ThreadManager.getInstance().schedule(this.getClass(), getPersonTask );
    }I hope this code can give you some idea.
    Happy Coding !! :)

  • Thinking of getting a Curve 8310...pls help me with some questions

    I have an ancient palm centro which I love dearly but the thing is falling apart as I have had it for over 2 years. I recently upgraded to a palm pixi plus but when I found out that I cannot bluetooth or text message calender events to my husband's phone, I returned it. I have a few questions about this phone:
    1.) Can you bluetooth or text message calendar events to another phone that is not a blackberry? And in the same respect, can you receive calendar events from another phone in the same way? This is how I communicate upcoming events with my husband with my centro and it goes right on our calenders with a reminder. I am unwilling to give up this feature.
    2.) I am assuming that blackberry creates a chat log like in my centro during text messaging?
    3.) Can you create birthday reminders from your contact list? I was shocked that the pixi did not have this option.
    4.) Does the phone have a switch on the side to silence the phone and it will vibrate?
    Thank you so much to anyone who takes the time to answer my questions!

    Hey Lizzy731,
    Welcome to the BlackBerry Support Community Forums.
    Here is the answers to your questions.
    1. You can not Bluetooth transfer from one device to another and send calendar events.  However Bluetooth media transfer does work.  If anyone sends you an email with a calendar invite, it will save to your BlackBerry.
    2. When sending and receiving SMS, it does have a record of every message sent and receive.
    3. You do have the option to place in the birthday within a contact.
    4. You do have convenience keys which can be customized to your pleasure, so if you want to make one of the buttons to vibrate only, then you can.
    -ViciousFerret
    Come follow your BlackBerry Technical Team on Twitter! @BlackBerryHelp
    Be sure to click Like! for those who have helped you.
    Click  Accept as Solution for posts that have solved your issue(s)!

  • Help needed with these questions., plz

    Hello Gurus,
    1.     In bw 3.5, we have only u201CIntialyze delta without data Transferu201D, u201CEarly delta Intialyzationu201D & u201C Full uploadu201D. How can I do regular DELTA loads using infopackage?
    2.     In BI 7.0, we have only u201Cdelta DTPu201D, u201C Full DTPu201D. How can I do initialization of Delta, since we do only full load using infopackage till PSA?
    3.      How do we decide if we have to create secondary indexes?
    4.         How do you decide on which info object  we have to create aggregate. What r the conditions?
    Regards,
    PNK

    Hi Pnk,
    1 . Create infopack with Intialyze delta with data Transfer , once this load is done . If you create another infopak then Delta
         will be enabled .  Same as the case for 'Intialyze delta without data Transfer' this load will set delta in the source system and the next new infopack will be delta enabled.
    2 . Set ur DTP as Delta and execute , the first load will bring all the data which is reciding in the PSA , I mean the first load will
    act as Initialization . from second load it will act as Delta .
    3. If you have any DSO which is reportable , need to chk hw users are looking at the data , I mean drill downs if they drill
        down other than  key fields then inorder to get data faster we need to create secondary indexes
    4. try to analyse hw the users are drilling down on data ( In queries/work books), take those inputs and create aggregates on those .
    Regards
    Santosh
    Edited by: santosh on Feb 23, 2010 12:48 AM

  • Urgent help needed with  cookie question

    Hi guys,
    my question is:
    if any servlet generate a cookie object ( during http connection, of course ), so it will always store this cookie on the client side ( the user' browser) , which called the servlet ( of course). Is it right? If yes, what happens if the browser doesnt accept cookies?
    Thanks in advance, Euclides.

    Hi
    According to me The values will not store if Cookies are disabled by client untill and unless u do,nt use any other mechanism to store it e.g Session , UrlRedirection
    Regards
    Saurabh Singhal

  • HELP NEEDED WITH ADDAPTER-DVI TO VGA.

    PLEASE ...HELP NEEDED WITH WIRING CROSS OVER....CAN YOU HELP WITH BACK OF PLUG CONNECTIONS...I SORTA UNDERSTAND THE PINOUTS BUT CANT MAKE AN EXACT MACH...WOULD LIKE TO BE 100% SURE...
    ......THIS ENSURES NO SMOKE!!!                                                                                           
    THE CARD IS AN ATI RADEON RX9250-DUAL HEAD-.........ADDAPTER IS DVI(ANALOG)MALE TO VGA(ANALOG)FEMALE.
    ANY HELP VERY MUCH APPRECIATED........ SEEMS YOU NEED TO BE ROCKET SCI TO ATTACH A BLOODY PICTURE...SO THIS HAS BEEN BIG WASTE OF FING TIME!

    Quote from: BOBHIGH on 17-December-05, 09:21:31
    Get over it mate !
    I find it easy t read CAPS...and if you dont like it ...DONT READ IT!
    And why bother to reply...some people have nothing better to do.
    Yes there chep and easy to come by...Ive already got a new one.
    All I wanted was to make a diagram of whats inside the bloody thing...it was a simple question and required a simple answer.
    NO NEED TO A WANKA !!
    I feel a bann comming up.
    Have you tryed Google ? really.. your question is inrelevant. No need to reply indeed.
    Why do you come here asking this question anyway ? is it becouse you have a MSI gfx card ? and the adapter has nothing to do with this ?
    You think you can come in here yelling.. thinking we have to put up with it and accept your style of posting. This is not a MSI tech center.. it's a user to user center.. Your question has nothing to do with MSI relavant things anyway's.
    Google = your friend.
    Quote from: BOBHIGH on 17-December-05, 09:21:31
    it was a simple question and required a simple answer
    Simple for who ? you (buying a new one) ? me ? we ?   .really...........
    Quote from: Dynamike on 16-December-05, 04:11:48
    1: There are allot of diffrent types of those adapters.
    If any of the mods have a problem about my reply.. please pm me.

  • Help needed with Vista 64 Ultimate

    "Help needed with Vista 64 UltimateI I need some help in getting XFI Dolby digital to work
    Okay so i went out and I bought a yamaha 630BL reciever, a digital coaxial s/pdif, and a 3.5mm phono plug to fit perfectly to my XFI Extreme Music
    -The audio plays fine and reports as a PCM stream when I play it normally, but I can't get dolby digital or DTS to enable for some reason eventhough I bought the DDL & DTS Connect Pack for $4.72
    When I click dolby digital li've in DDL it jumps back up to off and has this [The operation was unsuccessful. Please try again or reinstall the application].
    Message Edited by Fuzion64 on 03-06-2009 05:33 AMS/PDIF I/O was enabled under speakers in control panel/sound, but S/PDIF Out function was totally disabled
    once I set this to enabled Dolby and DTS went acti've.
    I also have a question on 5. and Vista 64
    -When I game I normally use headphones in game mode or 2. with my headphones, the reason for this is if I set it on 5. I get sounds coming out of all of the wrong channels.
    Now when I watch movies or listen to music I switch to 5. sound in entertainment mode, but to make this work properly I have to open CMSS-3D. I then change it from xpand to stereo and put the slider at even center for 50%. If I use the default xpand mode the audio is way off coming out of all of the wrong channels.
    How do I make 5. render properly on vista

    We ended up getting iTunes cleanly uninstalled and were able to re-install without issue.  All is now mostly well.
    Peace...

  • Help needed with header and upload onto business catalyst

    Can someone help with a problem over a header please?
    I have inserted a rectangle with a jpeg image in  background, in the 'header' section, underneath the menu. It comes up fine on most pages when previsualised, going right to the side of the screen, but stops just before the edge on certain pages. I have double checked that I have placed it in the right place in relation to the guides on the page.
    That's one problem.
    The second problem is that I tried to upload onto business catalyst, which got to 60% and refused to go any further, saying it couldn't find the header picture, giving the title and then u4833-3.fr.png. The picture is in the right folder I have double checked. And it isn't a png. Does it have to be ?
    And the third problem is that I got an email following my upload from business catalyst in Swedish. I am living in France.
    Can anyone help ? Thanks.

    Thanks for replying,
    How can I check the preview in other browsers before I publish a provisional site with BC?
    The rectangle width issue happens on certain pages but not others. The Welecom page is fine when the menu is active, also the contact page, but others are slightly too narrow. Changing the menu spacing doesn’t help - I was already on uniform but tried changing to regular and back.
    In design mode the rectangle is set to the edge of the browser, that’s 100%browser width right?
    Re BC I have about 200 images on 24 different pages and it seems to be having difficulty uploading some of them. But it has managed a couple I named with spaces but not others I named with just one name.
    Is there an issue on size of pictures ? If I need to replace is there a quick way to rename and relink or do I have to insert the photos all over again?
    I’m a novice with Muse with an ambitious site !
    Thanks for your help.
    Mary Featherstone
    Envoyé depuis Courrier Windows
    De : Sanjit_Das
    Envoyé : vendredi 14 février 2014 22:15
    À : MFeatherstone
    Re: Help needed with header and upload onto business catalyst
    created by Sanjit_Das in Help with using Adobe Muse CC - View the full discussion 
    Hi
    Answering the questions :
    - Have you checked the preview in Muse and also in other browsers ?
    - Does the rectangle width issue happens when menu is active , or in any specific state , Try to change the menu with uniform spacing and then check.
    - In design view the rectangle is set to 100% browser width ?
    With publishing :
    - Please try to rename the image file and then relink
    - If it happens with other images as well , see if all the image names includes strange characters or spaces.
    - Try again to publish
    With e-mail from BC :
    - Under preferences , please check the country selected.
    - If you have previously created partner account in BC and selected country and language then it would follow that, please check that.
    Thanks,
    Sanjit
    Please note that the Adobe Forums do not accept email attachments. If you want to embed a screen image in your message please visit the thread in the forum to embed the image at http://forums.adobe.com/message/6121942#6121942
    Replies to this message go to everyone subscribed to this thread, not directly to the person who posted the message. To post a reply, either reply to this email or visit the message page: http://forums.adobe.com/message/6121942#6121942
    To unsubscribe from this thread, please visit the message page at http://forums.adobe.com/message/6121942#6121942. In the Actions box on the right, click the Stop Email Notifications link.
    Start a new discussion in Help with using Adobe Muse CC at Adobe Community
    For more information about maintaining your forum email notifications please go to http://forums.adobe.com/thread/416458?tstart=0.

  • Help needed with java

    Hello everyone
    I'm a Student and new to java and I have been given a question which I have to go through. I have come across a problem with one of the questions and am stuck, so I was wondering if you guys could help me out.
    here is my code so far:
    A Class that maintains Information about a book
    This might form part of a larger application such
    as a library system, for example.
    @author (your name)
    *@version (a version number or a date)*
    public class Book
    // instance variables or fields
    private String author;
    private String title;
    Set the author and title when the book object is constructed
    public Book(String bookAuthor, String bookTitle)
    author = bookAuthor;
    title = bookTitle;
    Return The name of the author.
    public String getAuthor()
    return author;
    Return The name of the title.
    public String getTitle()
    return title;
    and below are the questions that I need to complete. they just want me to add codes to my current one, but the problem is I don't know where to put them and how I should word them, if that makes sense.
    Add a further instance variable/field pages to the Book class to store the number of pages in the book.
    This should be of type int and should be set to 0 in the Constructor.
    Add a second Constructor with signature
    public Book(String bookAuthor, String bookTitle, int noPages) so it has a third parameter passed to it as well as the author and title;
    this parameter is used - obviously?? - to initialise the number of pages.
    Note: This is easiest done by making a copy of the existing Constructor and adding the parameter.
    Add a getPages() accessor method that returns the number of pages in the book.
    Add a method printDetails() to your Book class. This should print out the Author title and number of pages to the Terminal Window. It is your choice as to how the data is formatted, perhaps all on one line, perhaps on three, and with or without explanatory text. For instance you could print out in the format:
    Title: Robinson Crusoe, Author: Daniel Defoe, Pages:226
    Add a further instance variable/field refNumber() to your Book class. This stores the Library's reference number. It should be of type String and be initialised to the empty String "" in the constructor, as its initial value is not passed in as a parameter. Instead a public mutator method with the signature:
    public void setRefNumber(String ref) should be created. The body of this method should assign the value of the method parameter ref to the refNumber.
    Add a corresponding getRefNumber() accessor method to your class so you can check that the mutator works correctly
    Modify your printDetails() method to include printing the reference number of the book.
    However the method should print the reference number only if it has been set - that is the refNumber has a non-zero length.
    If it has not been set, print "ZZZ" instead.
    Hint Use a conditional statement whose test calls the length() method of the refNumber String and gives a result like:
    Title: Jane Eyre, Author: Charlotte Bronte, Pages:226, RefNo: CB479 or, if the reference number is not set:
    Title: Robinson Crusoe, Author: Daniel Defoe, Pages:347, RefNo: ZZZ
    Modify your setRefNumber() method so that it sets the refNumber field only if the parameter is a string of at least three characters. If it is less than three, then print an error message (which must contain the word error) and leave the field unchanged
    Add a further integer variable/field borrowed to the Book class, to keep a count of the number of times a book has been borrowed. It should (obviously??) be set to 0 in the constructor.
    Add a mutator method borrow() to the class. This should increment (add 1 to) the value of borrowed each time it is called.
    Include an accessor method getBorrowed() that returns the value of borrowed
    Modify Print Details so that it includes the value of the borrowed field along with some explanatory text
    PS. sorry it looks so messey

    1. In the future, please use a more meaningful subject. "Help needed with java" contains no information. The very fact that you're posting here tells us you need help with Java. The point of the subject is to give the forum an idea of what kind of problem you're having, so that individuals can decide if they're interested and qualified to help.
    2. You need to ask a specific question. If you have no idea where to start, then start here: [http://home.earthlink.net/~patricia_shanahan/beginner.html]
    3. When you post code, use code tags. Copy the code from the original source in your editor (NOT from an earlier post here, where it will already have lost all formatting), paste it in here, highlight it, and click the CODE button.

  • Help needed with Game AI - cash waiting

    Hi everyone,
    I have created a game (java applet). Works fully, and has some basic game strategies, but I need to implement some complex AI strategies - such as minimax? minimax(alpha-beta)? A* ? End game database? - I need any two.
    If you are good with this sort of stuff it could be done in 3 hours or less. The whole game works fine just want to implement these advanced strategies.
    Price can be discussed and sent via paypal or bank transfer.
    The only catch is that I need this by 26th.
    Leave your details below if you're interested.

    There is a forum here for algorithms... you'll find you have to code your own there too, and then people will help you with specific questions. As always if you have your own code and you have specific questions and can pose resonable questions as to why it doesn't work -- most here will be glad to help.
    The reason many, including myself, will not just do homework is that we've had to do our own homework to pass the classes we took... get through on our own... and feel those that cannot do the same perhaps don't deserver to continue.
    Sorry if you cannot understand this or it seems harsh, but life is that way.

  • Help needed with this form in DW

    Hi, i have created this form in dreamweaver but ive got this problem.
    In the fields above the text field, the client needs to fill in some info such as name, email telephone number etc.
    But the problem is when ill get the messages. Only the text from the large text field is there.
    What did i do wrong??
    http://www.hureninparamaribo.nl/contact.html
    Thank you
    Anybody??

    Thank you for your response. So what do i have to do to fix this?
    Date: Sun, 20 Jan 2013 07:57:56 -0700
    From: [email protected]
    To: [email protected]
    Subject: Help needed with this form in DW
        Re: Help needed with this form in DW
        created by Ken Binney in Dreamweaver General - View the full discussion
    You have several duplicate "name" attributes in these rows which also appears in the first row
    Telefoon:
    Huurperiode:
    Aantal personen:
         Please note that the Adobe Forums do not accept email attachments. If you want to embed a screen image in your message please visit the thread in the forum to embed the image at http://forums.adobe.com/message/5008247#5008247
         Replies to this message go to everyone subscribed to this thread, not directly to the person who posted the message. To post a reply, either reply to this email or visit the message page: http://forums.adobe.com/message/5008247#5008247
         To unsubscribe from this thread, please visit the message page at http://forums.adobe.com/message/5008247#5008247. In the Actions box on the right, click the Stop Email Notifications link.
         Start a new discussion in Dreamweaver General by email or at Adobe Community
      For more information about maintaining your forum email notifications please go to http://forums.adobe.com/message/2936746#2936746.

  • I have to make a catalouge for my services as a financial planner.. earlier i used to do in MS publisher.. now i have a mac book.. can some one help me with some software info with which i can design a catalogue??

    I have to make a catalouge for my services as a financial planner.. earlier i used to do in MS publisher.. now i have a mac book.. can some one help me with some software info with which i can design a catalogue??

    Depending on what your needs are, you may use Pages included in iWork or purchase it separately (usually there is an evaluation copy with any new mac, I guess) or try other publishing apps. I once used MS Publisher, I remember it was something like a more sophisticated word processor, right?
    You may try the cheaper DTP iCalamus or Word for mac.

  • Please help me with this questions "if I purchased items through mac or windows is it possible to re-download those purchases on Apple TV though iCloud"

    Please help me with this questions "if I purchased items through mac or windows is it possible to re-download those purchases on Apple TV though iCloud"

    It depends on what country you're in and whether or not they're still available in the iTunes Store. Some purchased movies and all rentals won't be available.
    (108225)

  • Help needed with Pages

    I am about to commit and purchase the ipad in the uk (28th May). I do not need a laptop and hope you can help me with this question. I will be using both pages and numbers applications and my question regards saving files. Can somebody please explain how you save on the ipad is it into folders like my imac etc. can you then browse the folders for your documents etc and can you name them or does the ipad name ?. Can anybody help me with this and explain it or point me to any site ?. many thanks
    Mitch

    In case you haven't seen them, here are the faqs for pages and numbers. Note that pages can export to .doc but numbers cannot export to .xls
    http://support.apple.com/kb/HT4065
    http://support.apple.com/kb/HT4067

Maybe you are looking for

  • Analytic Windowing - Positive/Negative Range

    Hi, In analytic functions, we can say RANGE BETWEEN  x  PRECEDING       AND      y  PRECEDINGwhere x and y are expressions (not necessarily literals), as long as x and do not evaluate to negative numbers. If we know when we write the code that x and/

  • Shared services installation.

    through configuration utility - i am unable to configure shared services (configure database and deploy to App Server) . Given username & Password ( hypuser and password ) for SID (hypuser) on Database configuration details popup. got the below error

  • ALV Reports versus ABAP drilldown or high volume data

    Which is better with regards to performance? An ALV grid or an ABAP drilldown ? I am very concerned about performance given the high volume of data and therefore not sure if I should use ALV? input is appreciated J

  • Business Rule - Invalid prompt error - Security flaw?

    Hello all, I have a business rule in which users transfers volume from one cost center to another. The users have write access to sending cost centers and no access to receiving and this is how it is need. When I designed the rule and during the test

  • Java PDK

    Hi All, Where can I download the latest version of Java PDK. Also, where can I download any samples/documentation on Visual Composer and Web Dynpro. Thanks