This question is from DATA STRUCTURE & Algorithms
amistry_petlad
Posts
-
Consider a complete binary tree with an odd number of nodes. Let n be the number of internal nodes (non-leaves) in the tree. Define the internal path length, I, as the sum, taken over all the internal nodes of the tree, of the depth of each node. Lik -
Consider a complete binary tree with an odd number of nodes. Let n be the number of internal nodes (non-leaves) in the tree. Define the internal path length, I, as the sum, taken over all the internal nodes of the tree, of the depth of each node. LikThe other one is on binary tree. I do appreciate the guidline and how to prove that. Thanks, Amit
-
The degree of a node in a tree is the number of children the node has. If a tree has n1 nodes of degree 1, n2 nodes of degree 2, ..., nm nodes of degree m, compute the number of leaves in the tree in terms of n1, n2, . . . , nm.Full question is below . Consider a complete binary tree with an odd number of nodes. Let n be the number of internal nodes (non-leaves) in the tree. Define the internal path length, I, as the sum, taken over all the internal nodes of the tree, of the depth of each node. Likewise, define the external pathlength, E, as the sum, taken over all the leaves of the tree, of the depth of each leaf. Show that E = I + 2n Can some one guide me for the above subject line I greatly appreciate Thanks in Advance...
-
Calling .TLB file from vbscript in htm fileHi I have the following code for my ASP page its working fine, but I dont know how to use 'include' in VBSCRIPT. Any help would appreciate.Thanks in advance. <%@ LANGUAGE="vbscript" %> <!-- Include="XXXXXX.tlb" --> <% set obj=Server.CreateObject("XXXXXX.Class1") Response.write obj.GetSubsidiaryValue ("7XY") %> How can I convert this code in vbscript?
-
Insert opertion doesn't workCould you please refer the code in my first post ? and according can you provide me the hint?
-
Insert opertion doesn't workYes
-
Insert opertion doesn't workI am doing an insert opertion here in this code but when I opened table it shows blank rows.
namespace DAL { public class DALCustomerEntery { NorthwindMapping.NorthwindDataContext xy = new NorthwindMapping.NorthwindDataContext(); public void InsertData(Customer objCustObj) //this object is coming from BOL { NorthwindMapping.Customer cust= new NorthwindMapping.Customer(); cust.CustName = objCustObj.Custname; cust.amount = 25.89D; cust.Companyname = "My company"; cust.Checkin = DateTime.Now; cust.Checkout = DateTime.Now; xy.Customers.InsertOnSubmit(cust); xy.SubmitChanges(); } } }
Any help would be appreciated. Thanks. -
string copy problem in structure variableamit here
-
Sub Menu color and Font does not chage after using levelsubmenustylesHi , I have drag the Menu control from the navigation tool and change its color to my css match.Now the Main menu tabs changes its color and font But sub menu dosen't support evenafter used <levelsubmenustyles> Thanks all,Your Help will be appreciated
-
The best overloaded method match for 'System.Web.Security.FormsAuthentication.HashPasswordForStoringInConfigFile(string, string)' has some invalid argumentsCS1502: The best overloaded method match for 'System.Web.Security.FormsAuthentication.HashPasswordForStoringInConfigFile(string, string)' has some invalid arguments Source Error: Line 27: Line 28: objLogin = new STR_USERS(); Line 29: objLogin.PASSWORD_PRO = FormsAuthentication.HashPasswordForStoringInConfigFile(txtPassword, "MD5"); Line 30: objLogin.USERNAME_PRO = FormsAuthentication.HashPasswordForStoringInConfigFile(txtUserName,"MD5"); Line 31:
I don't why I got this error. -
Gridview control ProblemHi all! I am creating a grid view control containing data and column coming from two different sources . 1)first two columns in grid control coming from 1 source with all the data like field_name1 and field_name2. 2) second having the 1 column(Table Field) in the table which is display as columns header text in the grid view control combin with the above grid view. Now the problem. All the time the 2) is appear first i want to show him in 2nd priority. 1) shoud be display first. below is the code for that
if (chkHealthPlanDP.Checked) { //grdByHealthPlanDP.Visible = true; System.Web.UI.WebControls.GridView DiseaseGrid = new GridView(); DiseaseGrid.DataSource = **REPORT_METRIC_ENTITYMIX.GetData(2);** //data coming from source one DiseaseGrid.DataBind(); DiseaseGrid.Width = 100; DiseaseGrid.Height = 50; DiseaseGrid.GridLines = GridLines.Both; DiseaseGrid.CellPadding = 0; DiseaseGrid.HeaderStyle.BackColor = System.Drawing.Color.Pink; foreach (Master_ref_disease masterDisease in **Master_reference_disease.result()** //source 2) { BoundField c = new BoundField(); c.HeaderText = masterDisease.D_ID; //c.DataField = masterDisease.D_ID; DiseaseGrid.Columns.Add(c); } PlaceHolder1.Controls.Add(DiseaseGrid); DiseaseGrid.DataBind(); }
-
How can I call method from one page to other pageyes sir, I have one method in one page,There are 2 pages(_Default and _Default2) in one webapplication . one has already built method calcuatbalance() Now i want to call from page2 this is page1 one.
Partial Class _Default Inherits System.Web.UI.Page Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load call calcuatbalance() End Sub public sub calcuatbalance() .... .... .... End sub End Class
this is page2Partial Class _Default2 Inherits System.Web.UI.Page Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load call calcuatbalance() End Sub
How can I call calcualte balance from _Default2 page. Thanks -
How can I call method from one page to other pageHow can I call method from one page to other page? Thanks
-
how to connect asp.net 2.0 with oracle 9i/10gThanks but atleast need some help for using namespace for odp.net and connectionstring help to gain me something new so i can explain them at that time.
-
how to connect asp.net 2.0 with oracle 9i/10gdear paul I have interview the day after and I need your urgent help. I was from sql server side so need ODP.NET GUIDE SO NEED YOUR HELP. I REALLY APPRECIATE IF YOU HELP ME THANKS IN ADVANCE
-
how to connect asp.net 2.0 with oracle 9i/10gHelp me or provide me any article for that. Thanks
-
Nortwind database selection through database expert ???I want to just print all records from the one or two tables in the report from northwind by crystal report like using http://msdn.microsoft.com/en-us/library/ms227875(VS.80).aspx[^] I have found the following link for direct table fields I haven't found link tab. http://msdn.microsoft.com/en-us/library/ms227352(VS.80).aspx[^]
modified on Sunday, July 20, 2008 9:31 PM
-
Nortwind database selection through database expert ???I want to connect my reports with northwind database with simple putting bindingsource control and want to add tables through dataexpert thanks
-
Crystal report preview is working but when running form its not workingHi all I have added table fields from the table in the crystal report viewer but when I execute that form it doesn't show me that records. But in preview it shows me all values.
-
How to bind Listview to Ilistwhy you can not bind the data directly to the listview rather then putting it into IList is there any specific reason? let me know so I can help you better. ;) Will this may be helpful? http://www.theserverside.net/tt/articles/showarticle.tss?id=NHibernate[^]