Code covered by the BSD License  

Highlights from
Submodular Function Optimization

image thumbnail

Submodular Function Optimization

by

 

28 Jun 2008 (Updated )

This toolbox provides functions for maximizing and minimizing submodular set functions.

sfo_charvector(V,A)
% returns characteristic vector of A
% Author: Andreas Krause (krausea@gmail.com)
%
% function w = sfo_charvector(V,A)
% V: index set
% A: subset of V
%
% Example: sfo_charvector([2,1,4],[4,2])=[1 0 1]

function w = sfo_charvector(V,A)
w = ismember(V,A);

Contact us