User Profile

Collapse

Profile Sidebar

Collapse
kinannawaz
kinannawaz
Last Activity: Nov 16 '08, 08:11 PM
Joined: Dec 6 '07
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • OKAY

    But i donot get the answer?

    Can i get more detailed answer please

    Code:
    for(i=0 to i<10)  => n
     for(j=0 to j<i)    => (n+n)/2
        x=i+j            => ???
    Is the above correct?
    Can i get more explanation on the time complexity of the inner loop?
    Have u applied some Arithematic series formula?


    Thanks
    kinnan
    See more | Go to post

    Leave a comment:


  • Thanks fo the answers

    here is tricky one

    Code:
    for(i=0 to i<10)
     for(j=0 to j<i)
        x=i+j
    what will be time complexity of each statment and whole code?
    please give some elaboration also.

    Thank you very much
    kinnan
    See more | Go to post

    Leave a comment:


  • What will be the time complexity of the following code?

    Code:
    for (i=0 to i<10)     =>n+1
      for(j=0 to j<10)    =>n(n+1)
          x=i+j              => n
    Is the above time complexity of each statment correct?
    What will be the total time complexity of whole code?

    n+1+n(n+1)+n

    OR

    (n+1)*n(n+1)*n

    Which is correct? or both...
    See more | Go to post

    Leave a comment:


  • what will be the time complexity of the following code

    for(i=0 to i<10) =>n+1 (total loop iteration+ one to exit the loop)
    j=i+1;

    is the above right
    so time.complexity will be
    O(n)
    See more | Go to post

    Leave a comment:


  • You have given The time complexity of the whole Algorithm
    Thanks

    But i dont understand that u have not calculated the timetime complexity of every statment i.e

    d = sqrt (i+j)
    if radius -0.5 < d < radius + 0.5
    puetpixel (i,j,1)

    Can u give more detail regarding following steps
    First calculate the time complexity of each statment
    Then add up or multiply...
    See more | Go to post

    Leave a comment:


  • time complexity of algorithm that is a worst idea to draw a

    Can any one help me what will be the time complexity in worst case i.e Big Oh of the following algo I need to resolve it i have worked on it but am not able to come up with the final solution .the below algorithm is going to draw a circle any help or suggestion regarding this algo will be hidhly appreciatable

    circle (radius)
    for i =10 to -10
    for j =-10 to 10
    d = sqrt (i+j)
    if radius -0.5 < d < radius...
    See more | Go to post

  • kinannawaz
    started a topic Copy Data From One Gridview To Another In C Sharp
    in .NET

    Copy Data From One Gridview To Another In C Sharp

    I have two datagridviews

    datagridview1.
    datagridview2

    datagridview1 contains data.
    datagridview2 is empty.

    WHAT I AM TRYIING TO DO is
    when a row in datagridview1 is clicked (row enter) then that row will be copied in datagrid view 2.
    See more | Go to post

  • kinannawaz
    started a topic MVC design pattren help
    in .NET

    MVC design pattren help

    I am implementing a project using mvc design pattren in c sharp.

    I am making a desktop application not web application using c sharp

    I have searched a lot on the web about mvc.

    I have made a model class , a controller class for each view class (Form) i.e if i have 3 forms in my project then i have 3 model class and 3 controller class. one for each form?

    I HEARD from a friend that there will...
    See more | Go to post

  • kinannawaz
    started a topic c sharp textbox problem
    in .NET

    c sharp textbox problem

    i am not able to store the value retrived from the textbox to string type variable
    the code is

    it runs but show me nothing.....

    public string getFirstname_te xtBox()
    {
    string txt = Firstname_textB ox.Text.ToStrin g();
    MessageBox.Show (txt);
    return txt;
    }

    HOW CAN I WRITE GET AND SET METHOD FOR A TEXTBOX?
    eg...
    See more | Go to post

  • kinannawaz
    started a topic MVC design in c# PLEASE HELP!!!!!!
    in .NET

    MVC design in c# PLEASE HELP!!!!!!

    i am trying to implement a C# program using MVC .
    i am implementing MVC design in desktop application not web application

    I have Made two classes
    temporarily i have not made control classs to avoid complexity.

    1.DATACLASS
    (Uses connection class to fetch data from database and upload it to presentation class.this class interactes with the database only)

    2.PRESENTATIONC LASS
    ...
    See more | Go to post

  • kinannawaz
    replied to Adding buttons to the form dynamically
    in .NET
    I have made a new function to solve the problem to get the dynamically created controls from the windows forms and the panel inside the form but i am having a problem in it please help

    public void call2()
    {
    string str="";
    //Form.ControlCol lection formControls = new Form.ControlCol lection(Form3);

    foreach (Control c in Controls)...
    See more | Go to post

    Leave a comment:


  • kinannawaz
    replied to Adding buttons to the form dynamically
    in .NET
    Here is the new code i have done to get the values from the dynamically created textboxes.
    Every time this function is called a new textbox and label is added to the panel of my form.
    How do i get the values from these dynamically creadted textboxes.
    I have used an array to get the values but the vakues are not fetched from the textbox.

    void create_label_te xtbox()
    {
    TextBox textBox1...
    See more | Go to post

    Leave a comment:


  • kinannawaz
    replied to Adding buttons to the form dynamically
    in .NET
    Thanks it worked my new modified function

    private void call()
    {
    TextBox textbox1=new TextBox();
    Label label1= new Label();

    j = j + 25;
    textbox1.Size = new System.Drawing. Size(75, 20);
    textbox1.Locati on = new System.Drawing. Point(91, j);
    textbox1.Name.E quals("textbox" + i);

    ...
    See more | Go to post

    Leave a comment:


  • kinannawaz
    replied to Adding buttons to the form dynamically
    in .NET
    THANKS PLATER IT REALLY WORKED

    THANK YOU

    THANK YOU...
    See more | Go to post

    Leave a comment:


  • kinannawaz
    replied to Adding buttons to the form dynamically
    in .NET
    you r right when i run the program only the position of the label and textbox changes of that particular textbox and label nothing else .

    the same textbox and label moves down the panel but nothing is added to the panel

    how do i declare and initialize label and text box dynamically so that every time a button is clicked it declares and initialize a new textbox and label and adds it to the panel contol......
    t...
    See more | Go to post

    Leave a comment:


  • kinannawaz
    replied to Adding buttons to the form dynamically
    in .NET
    You r right but this only creates one button dynamically
    I want to create buttons as long as user wants
    I am posting my code that will add a textbox and a label to the panel of the form
    It only prints one textbox and and label dynamically

    private void button1_Click(o bject sender, EventArgs e)
    {
    j = j + 25;// increment the position of the labael and text box
    ...
    See more | Go to post

    Leave a comment:


  • kinannawaz
    started a topic Adding buttons to the form dynamically
    in .NET

    Adding buttons to the form dynamically

    HELP NEEDED IN C# SHARP??

    I have been working on a project in c sharp i am trying to add buttons to the panel in my form when the user clicks a button "add more".

    How will i do that add buttons to the panel in the form dynamically that (new button) should be placed on nextline.
    See more | Go to post

  • kinannawaz
    replied to Search Engine Using C++
    in C
    okay.........

    thx for the above info

    it was not helpfull for my project.

    but i will keep in mind whenever i post

    i will be posting my coding error soon as i am working on it right now....

    thx
    See more | Go to post

    Leave a comment:


  • kinannawaz
    replied to Search Engine Using C++
    in C
    It will mean a lot............ ............to me
    See more | Go to post

    Leave a comment:


  • kinannawaz
    started a topic Search Engine Using C++
    in C

    Search Engine Using C++

    I have been given a project to build a search engine using c++ i am enrolled in data structure course. I want to convert an html file into a .txt file than i have to search the page with the string specified (e.g. LONDON) . it sholud go through all the html file (e.g file.html) and searh for 'london' string if it founds that sting it should return me true i.e if it finds london in that .html file.

    I think i have to use file handling...
    See more | Go to post
No activity results to display
Show More
Working...