Write a program to demonstrate subnetting and find the subnet masks
Answers
Answered by
0
Answer:
QwlionVirtuoso
Program to show subnetting and find the subnet masks.
import java.util.Scanner;
class Subnet{ public static void main(String args[])
{
Scanner = new Scanner(System.in);
System.out. println (“Enter the ip address: “);
String = sc. next Line();
String = ip. split(“\\.”); .
String split_bip[] = new String[4];
split binary ip String bip = “”;
for(int i=0;i<4;i++)
split_bip[i] = appendZero
✌✌✌✌✌✌✌✌✌✌✌✌✌✌✌✌
Answered by
0
Explanation:
Branch and bound (BB, B&B, or BnB) is an algorithm design paradigm for discrete and combinatorial optimization problems, as well as mathematical optimization.
- A branch-and-bound algorithm consists of a systematic enumeration of candidate solutions by means of state space search:
- the set of candidate solutions is thought of as forming a rooted tree with the full set at the root.
- The algorithm explores branches of this tree, which represent subsets of the solution set. Before enumerating the candidate solutions of a branch, the branch is checked against upper and lower estimated bounds on the optimal solution, and is discarded if it cannot produce a better solution than the best one found so far by the algorithm.
Similar questions